Skip to content

Commit cc3f4be

Browse files
committed
Remove unnecessary With<PointLight> in check_light_visibility query
1 parent f279b7f commit cc3f4be

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

pipelined/bevy_pbr2/src/render/light.rs

+7-10
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,13 @@ pub fn update_point_light_frusta(
334334
}
335335

336336
pub fn check_light_visibility(
337-
mut point_lights: Query<
338-
(
339-
&PointLight,
340-
&GlobalTransform,
341-
&CubemapFrusta,
342-
&mut CubemapVisibleEntities,
343-
Option<&RenderLayers>,
344-
),
345-
With<PointLight>,
346-
>,
337+
mut point_lights: Query<(
338+
&PointLight,
339+
&GlobalTransform,
340+
&CubemapFrusta,
341+
&mut CubemapVisibleEntities,
342+
Option<&RenderLayers>,
343+
)>,
347344
mut directional_lights: Query<
348345
(&Frustum, &mut VisibleEntities, Option<&RenderLayers>),
349346
With<DirectionalLight>,

0 commit comments

Comments
 (0)