diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-21 19:11:14 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-21 19:11:14 +0200 |
commit | 873dcd5dd712a2449e8ba59d076ac64399692d61 (patch) | |
tree | c182eba6195673e98ac0b825c10dcaae90e9bded | |
parent | c8c7012b4bbf72b082e50c76de2550e85c8ebfd0 (diff) |
fix(ecs): make Query::entity_uid use entity filter from query options
-rw-r--r-- | ecs/src/query.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ecs/src/query.rs b/ecs/src/query.rs index 06633bc..dea3039 100644 --- a/ecs/src/query.rs +++ b/ecs/src/query.rs @@ -68,6 +68,7 @@ where .find_entities(Comps::metadata()) .map(|archetype| archetype.entities()) .flatten() + .filter(|entity| OptionsT::entity_filter(entity.components())) .nth(entity_index)? .uid(), ) |