From 6a719cd9ab35404659f1162e532e56298ee20aac Mon Sep 17 00:00:00 2001 From: Indradb <60851042+Indra-db@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:26:35 +0900 Subject: [PATCH] wrap world::module in defer_begin and defer_end this is to counter a bug temporarily, posted on discord https://discord.com/channels/633826290415435777/1303253280864079882 --- flecs_ecs/src/addons/module.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flecs_ecs/src/addons/module.rs b/flecs_ecs/src/addons/module.rs index 7a332c6b..14338822 100644 --- a/flecs_ecs/src/addons/module.rs +++ b/flecs_ecs/src/addons/module.rs @@ -145,6 +145,7 @@ impl World { /// * [`World::import()`] /// * C++ API: `world::module` pub fn module(&self, name: &str) -> EntityView { + self.defer_begin(); let comp = self.component::(); let id = comp.id(); @@ -187,6 +188,7 @@ impl World { } } } + self.defer_end(); //self.set_scope_id(id); EntityView::new_from(self, *id)