summaryrefslogtreecommitdiff
path: root/ecs/src/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r--ecs/src/query.rs5
1 files changed, 5 insertions, 0 deletions
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);
}
}