update plugins only if it is allowed
@@ -482,6 +482,7 @@ impl Engine {
}
fn update_plugins(&mut self, dt: f32) {
+ if self.plugins_enabled {
let mut context = PluginContext {
scenes: &mut self.scenes,
resource_manager: &self.resource_manager,
@@ -495,6 +496,7 @@ impl Engine {
plugin.update(&mut context);
}
}
+ }
/// Processes an OS event by every registered plugin.
pub fn handle_os_event_by_plugins(&mut self, event: &Event<()>, dt: f32) {
