Don't trigger animation events when paused 2 (#15682)

# Objective

I completely forgot that animation events are triggered in two separate
systems (sorry). The issue ~~fixed~~ by #15677, can still happen if the
animation event is not targeting a specific bone.

## Solution

_Realy_ don't trigger animation events for paused animations.
This commit is contained in:
poopy 2024-10-06 22:16:39 +02:00 committed by GitHub
parent f37f5fd281
commit b4ffb7ab7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {