Skip to content

Commit

Permalink
Add With<ComputedNode> filter to ui_stack_system
Browse files Browse the repository at this point in the history
  • Loading branch information
ickshonpe committed Feb 14, 2025
1 parent 2531470 commit b97fff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn ui_stack_system(
mut ui_stack: ResMut<UiStack>,
root_node_query: Query<
(Entity, Option<&GlobalZIndex>, Option<&ZIndex>),
Without<ResolvedChildOf>,
(Without<ResolvedChildOf>, With<ComputedNode>),
>,
zindex_global_node_query: Query<(Entity, &GlobalZIndex, Option<&ZIndex>), With<ComputedNode>>,
ui_children: Query<&ResolvedChildren>,
Expand Down

0 comments on commit b97fff8

Please sign in to comment.