diff --git a/crates/bevy_ui/src/render/box_shadow.rs b/crates/bevy_ui/src/render/box_shadow.rs index 365a06fcaf2d8..ce741ce137ec7 100644 --- a/crates/bevy_ui/src/render/box_shadow.rs +++ b/crates/bevy_ui/src/render/box_shadow.rs @@ -262,7 +262,7 @@ pub fn extract_shadows( continue; }; - // Skip invisible images + // Skip if no visible shadows if !view_visibility.get() || box_shadow.is_empty() || uinode.is_empty() { continue; }