From cc3f4beafac576fd9199b28c90e731ec3a5c9d24 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Thu, 23 Sep 2021 10:43:20 +0200 Subject: [PATCH] Remove unnecessary With in check_light_visibility query --- pipelined/bevy_pbr2/src/render/light.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pipelined/bevy_pbr2/src/render/light.rs b/pipelined/bevy_pbr2/src/render/light.rs index 747e41afa7dff3..fd179f3fe4d14f 100644 --- a/pipelined/bevy_pbr2/src/render/light.rs +++ b/pipelined/bevy_pbr2/src/render/light.rs @@ -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, - >, + mut point_lights: Query<( + &PointLight, + &GlobalTransform, + &CubemapFrusta, + &mut CubemapVisibleEntities, + Option<&RenderLayers>, + )>, mut directional_lights: Query< (&Frustum, &mut VisibleEntities, Option<&RenderLayers>), With,