mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 14:10:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ fn queue_node_for_update(
|
|||
window_children: &mut Vec<NodeId>,
|
||||
) {
|
||||
let should_push = if let Some(parent) = parent {
|
||||
node_entities.contains(parent.get())
|
||||
!node_entities.contains(parent.get())
|
||||
} else {
|
||||
true
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue