widget gallery and compositor test bench
refactor: tree walks read ctx.tree directly (children/parent left WidgetHost)
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N4ajhvVZtyEEEus9bodsj3
src/main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
index 7392001..c77c45a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1363,7 +1363,7 @@ cascades in cce."
// and any widget with a ui-tree parent (the page selector under the status
// bar) is covered by that parent's descent — walking it here too would emit
// its text twice.
- if w.parent(&self.ui_context).is_some() {
+ if self.ui_context.tree.parent_ptr(w.base().id()).is_some() {
continue;
}
let mut scratch = cce_ui::scene::paint::PaintCtx::new();