Skip to content

Commit

Permalink
box shadows comment fix (#16729)
Browse files Browse the repository at this point in the history
# Objective

Fix this comment in `extract_shadows`:
```
        // Skip invisible images
```
Should be shadows, not images.
  • Loading branch information
ickshonpe authored Dec 10, 2024
1 parent 99b6f1d commit d6ebc0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/render/box_shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d6ebc0e

Please sign in to comment.