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:
dataphract 2022-02-04 03:07:22 +00:00
parent fe4a42a648
commit ca83e8a6de

View file

@ -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,