Skip to content

Commit

Permalink
Add clear_schedule (bevyengine#3941)
Browse files Browse the repository at this point in the history
# Objective

Adds `clear_schedule` method to `State`.

Closes bevyengine#3932
  • Loading branch information
hlbarber authored and aevyrie committed Jun 7, 2022
1 parent 7ec65a6 commit 664c415
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_ecs/src/schedule/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ where
pub fn inactives(&self) -> &[T] {
self.stack.split_last().map(|(_, rest)| rest).unwrap()
}

/// Clears the scheduled state operation.
pub fn clear_schedule(&mut self) {
self.scheduled = None;
}
}

#[derive(Debug, Error)]
Expand Down

0 comments on commit 664c415

Please sign in to comment.