diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-01 16:11:15 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-02 15:34:54 +0200 |
commit | fd42ca5a25f8bab3ea66252f8bc0db02604f70dd (patch) | |
tree | 6d384b5f462e2699342372f6b56791fc4607e9c6 /ecs/src/query.rs | |
parent | 70c7d745f918dd23343599963a619539f4f880cb (diff) |
feat(ecs): add relationships
Diffstat (limited to 'ecs/src/query.rs')
-rw-r--r-- | ecs/src/query.rs | 5 |
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); } } |