diff --git a/src/computed.rs b/src/computed.rs index 40df231..69b6dfe 100644 --- a/src/computed.rs +++ b/src/computed.rs @@ -35,7 +35,10 @@ pub(crate) fn compute_outline_depth( ), Without, >, - mut computed_query: Query<(&mut ComputedOutlineDepth, Changed)>, + mut computed_query: Query< + (&mut ComputedOutlineDepth, Changed), + With, + >, child_query: Query<(&Children, Changed)>, ) { for (mut computed, transform, changed_transform, set_depth, children) in root_query.iter_mut() { @@ -75,7 +78,10 @@ fn propagate_outline_depth( root_computed: &ComputedOutlineDepth, mut changed: bool, entity: Entity, - computed_query: &mut Query<(&mut ComputedOutlineDepth, Changed)>, + computed_query: &mut Query< + (&mut ComputedOutlineDepth, Changed), + With, + >, child_query: &Query<(&Children, Changed)>, ) { if let Ok((mut computed, changed_inherit)) = computed_query.get_mut(entity) {