Function mark_dirty_trees

Source
pub fn mark_dirty_trees(
    changed_transforms: Query<'_, '_, Entity, Or<(Changed<Transform>, Changed<ChildOf>, Added<GlobalTransform>)>>,
    orphaned: RemovedComponents<'_, '_, ChildOf>,
    transforms: Query<'_, '_, (Option<&ChildOf>, &mut TransformTreeChanged)>,
)
Available on crate feature bevy-support only.
Expand description

Optimization for static scenes. Propagates a “dirty bit” up the hierarchy towards ancestors. Transform propagation can ignore entire subtrees of the hierarchy if it encounters an entity without the dirty bit.