bevy/crates/bevy_ui/src
ickshonpe efb4fa5d61
Give UI nodes with Display::None an empty clipping rect (#10942)
# Objective
Outlines are drawn for UI nodes with `Display::None` set and their
descendants. They should not be visible.

## Solution

Make all Nodes with `Display::None` inherit an empty clipping rect,
ensuring that the outlines are not visible.

Fixes #10940

---

## Changelog
* In `update_clipping_system` if a node has `Display::None` set, clip
the entire node and all its descendants by replacing the inherited clip
with a default rect (which is empty)
2023-12-23 05:07:30 +00:00
..
layout Change Window scale factor to f32 (adopted) (#10897) 2023-12-14 14:56:40 +00:00
render Remove unnecessary parentheses (#10990) 2023-12-16 02:26:18 +00:00
widget Change Window scale factor to f32 (adopted) (#10897) 2023-12-14 14:56:40 +00:00
accessibility.rs Various accessibility API updates. (#9989) 2023-10-02 21:22:52 +00:00
camera_config.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
focus.rs Change Window scale factor to f32 (adopted) (#10897) 2023-12-14 14:56:40 +00:00
geometry.rs don't Implement Display for Val (#10345) 2023-11-02 21:54:41 +00:00
lib.rs Change Window scale factor to f32 (adopted) (#10897) 2023-12-14 14:56:40 +00:00
measurement.rs Change the default for the measure_func field of ContentSize to None. (#9346) 2023-08-07 23:06:40 +00:00
node_bundles.rs Rename TextAlignment to JustifyText. (#10854) 2023-12-05 03:00:41 +00:00
stack.rs Remove unnecessary parentheses (#10990) 2023-12-16 02:26:18 +00:00
ui_material.rs Provide GlobalsUniform in UiMaterial shaders (#10739) 2023-11-28 12:08:28 +00:00
ui_node.rs Change Window scale factor to f32 (adopted) (#10897) 2023-12-14 14:56:40 +00:00
update.rs Give UI nodes with Display::None an empty clipping rect (#10942) 2023-12-23 05:07:30 +00:00