From d6ebc0ed4aa243568979aac6b6408aca0bfa0ceb Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Tue, 10 Dec 2024 03:33:58 +0000 Subject: [PATCH] box shadows comment fix (#16729) # Objective Fix this comment in `extract_shadows`: ``` // Skip invisible images ``` Should be shadows, not images. --- crates/bevy_ui/src/render/box_shadow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/render/box_shadow.rs b/crates/bevy_ui/src/render/box_shadow.rs index 365a06fcaf..ce741ce137 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; }