![]() # Objective Don't ignore default query filters for `EntityRef` or `EntityMut`. Currently, `Query<EntityRef>` will include entities with a `Disabled` component, even though queries like `Query<()>` or `Query<Entity>` would not. This was noticed in https://github.com/bevyengine/bevy/pull/19711#discussion_r2205981065. ## Solution Change `Access::contains` to completely ignore read access and just look at filters and archetypal access. Filters covers `With`, `Without`, `&`, and `&mut`, while archetypal covers `Has` and `Allows`. Note that `Option<&Disabled>` will no longer count as a use of `Disabled`, though. |
||
---|---|---|
.. | ||
access.rs | ||
builder.rs | ||
error.rs | ||
fetch.rs | ||
filter.rs | ||
iter.rs | ||
mod.rs | ||
par_iter.rs | ||
state.rs | ||
world_query.rs |