From fd42ca5a25f8bab3ea66252f8bc0db02604f70dd Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 1 Aug 2024 16:11:15 +0200 Subject: feat(ecs): add relationships --- ecs/src/query.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ecs/src/query.rs') diff --git a/ecs/src/query.rs b/ecs/src/query.rs index bc98ac0..beb2478 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -123,6 +123,7 @@ where Box::new(QueryComponentIds { component_ids: Comps::metadata() }) } + #[cfg_attr(feature = "debug", tracing::instrument(skip_all))] fn prepare(world_data: &WorldData) { let mut component_storage_lock = world_data @@ -137,6 +138,10 @@ where ); component_storage_lock.add_archetype_lookup_entry(Comps::metadata()); + + drop(component_storage_lock); + + Comps::prepare(world_data); } } -- cgit v1.2.3-18-g5258