diff --git a/crates/bevy_pbr/src/light.rs b/crates/bevy_pbr/src/light.rs index d661c0cfd03c84..640f34b8ee0689 100644 --- a/crates/bevy_pbr/src/light.rs +++ b/crates/bevy_pbr/src/light.rs @@ -504,7 +504,7 @@ pub fn assign_lights_to_clusters( let mut lights = lights .iter() .filter(|(.., visibility)| visibility.is_visible) - .map(|(entity, transform, light, visibility)| (entity, transform.translation, light)) + .map(|(entity, transform, light, _visibility)| (entity, transform.translation, light)) .collect::>(); if lights.len() > MAX_POINT_LIGHTS {