From 215521ec14a1581ef33f89b663da2dd9dab0b94c Mon Sep 17 00:00:00 2001 From: rosefarts Date: Sun, 6 Oct 2024 21:44:50 +0200 Subject: [PATCH] don't trigger animation events when paused 2 --- crates/bevy_animation/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 28e791d6a9990..8e74f5ddb15ba 100755 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -951,6 +951,10 @@ fn trigger_untargeted_animation_events( }; for (index, active_animation) in player.active_animations.iter() { + if active_animation.paused { + continue; + } + let Some(clip) = graph .get(*index) .and_then(|node| match &node.node_type {