Skip to content

Commit

Permalink
Remove unnecessary With<PointLight> in check_light_visibility query
Browse files Browse the repository at this point in the history
  • Loading branch information
superdump committed Nov 4, 2021
1 parent d5c2c2c commit 1fe1df6
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions pipelined/bevy_pbr2/src/render/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,13 @@ pub fn update_point_light_frusta(
}

pub fn check_light_visibility(
mut point_lights: Query<
(
&PointLight,
&GlobalTransform,
&CubemapFrusta,
&mut CubemapVisibleEntities,
Option<&RenderLayers>,
),
With<PointLight>,
>,
mut point_lights: Query<(
&PointLight,
&GlobalTransform,
&CubemapFrusta,
&mut CubemapVisibleEntities,
Option<&RenderLayers>,
)>,
mut directional_lights: Query<
(&Frustum, &mut VisibleEntities, Option<&RenderLayers>),
With<DirectionalLight>,
Expand Down

0 comments on commit 1fe1df6

Please sign in to comment.