Skip to content

Commit ccb1788

Browse files
committed
Add clear_schedule (#3941)
# Objective Adds `clear_schedule` method to `State`. Closes #3932
1 parent baae97d commit ccb1788

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bevy_ecs/src/schedule/state.rs

+5
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ where
392392
pub fn inactives(&self) -> &[T] {
393393
self.stack.split_last().map(|(_, rest)| rest).unwrap()
394394
}
395+
396+
/// Clears the scheduled state operation.
397+
pub fn clear_schedule(&mut self) {
398+
self.scheduled = None;
399+
}
395400
}
396401

397402
#[derive(Debug, Error)]

0 commit comments

Comments
 (0)