We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e4318 commit 57f92f0Copy full SHA for 57f92f0
crates/bevy_ecs/src/event.rs
@@ -766,6 +766,8 @@ pub fn event_update_system<T: Event>(
766
mut events: ResMut<Events<T>>,
767
) {
768
if let Some(mut s) = signal {
769
+ // If we haven't got a signal to update the events, but we *could* get such a signal
770
+ // return early and update the events later.
771
if !std::mem::replace(&mut s.0, false) {
772
return;
773
}
0 commit comments