From 873dcd5dd712a2449e8ba59d076ac64399692d61 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 21 Aug 2024 19:11:14 +0200 Subject: fix(ecs): make Query::entity_uid use entity filter from query options --- ecs/src/query.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ecs') 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(), ) -- cgit v1.2.3-18-g5258