mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
fix: remove unneeded filter in check_light_mesh_visibility (#3861)
# Objective The query for `VisiblePointLights` in `check_light_mesh_visibility` has a `Without<DirectionalLight>` filter. However, because `VisiblePointLights` is no longer an alias for `VisibleEntities`, the query won't conflict with the query for `DirectionalLight`s and thus the filter is unnecessary. ## Solution Remove the filter and the outdated comment explaining its purpose.
This commit is contained in:
parent
fe4a42a648
commit
ca83e8a6de
1 changed files with 1 additions and 3 deletions
|
@ -686,9 +686,7 @@ pub fn update_point_light_frusta(
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn check_light_mesh_visibility(
|
pub fn check_light_mesh_visibility(
|
||||||
// NOTE: VisiblePointLights is an alias for VisibleEntities so the Without<DirectionalLight>
|
visible_point_lights: Query<&VisiblePointLights>,
|
||||||
// is needed to avoid an unnecessary QuerySet
|
|
||||||
visible_point_lights: Query<&VisiblePointLights, Without<DirectionalLight>>,
|
|
||||||
mut point_lights: Query<(
|
mut point_lights: Query<(
|
||||||
&PointLight,
|
&PointLight,
|
||||||
&GlobalTransform,
|
&GlobalTransform,
|
||||||
|
|
Loading…
Reference in a new issue