missed negation during accessibility refactor (#11206)
# Objective - Since #10911, example `button` crashes when clicking the button ``` thread 'main' panicked at .cargo/registry/src/index.crates.io-6f17d22bba15001f/accesskit_consumer-0.16.1/src/tree.rs:139:9: assertion `left == right` failed left: 1 right: 0 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Encountered a panic in system `bevy_winit::accessibility::update_accessibility_nodes`! Encountered a panic in system `bevy_app::main_schedule::Main::run_main`! ``` ## Solution - Re-add lost negation
This commit is contained in:
parent
3f535d54eb
commit
5511483408
@ -152,7 +152,7 @@ fn queue_node_for_update(
|
|||||||
window_children: &mut Vec<NodeId>,
|
window_children: &mut Vec<NodeId>,
|
||||||
) {
|
) {
|
||||||
let should_push = if let Some(parent) = parent {
|
let should_push = if let Some(parent) = parent {
|
||||||
node_entities.contains(parent.get())
|
!node_entities.contains(parent.get())
|
||||||
} else {
|
} else {
|
||||||
true
|
true
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user