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 Oct 29, 2021
1 parent f279b7f commit cc3f4be
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 cc3f4be

Please sign in to comment.