Skip to content

Commit

Permalink
Add clear_schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
hlbarber committed Feb 19, 2022
1 parent 98938a8 commit 8a23a2d
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 @@ -398,6 +398,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 8a23a2d

Please sign in to comment.