aboutsummaryrefslogtreecommitdiff
path: root/scene/animation/animation_player.cpp
diff options
context:
space:
mode:
authorRay Koopa2017-11-28 16:46:37 +0100
committerRay Koopa2017-12-09 18:22:16 +0100
commitad9f987715831b4f1e72cfaf8d4bf6772370bf7d (patch)
treeb8f1c352010655d58f31c2a41d20ac8e0ef1c25a /scene/animation/animation_player.cpp
parent20a566d63a34e5b502a0b46d3cbe655427f1bc76 (diff)
downloadgodot-ad9f987715831b4f1e72cfaf8d4bf6772370bf7d.tar.gz
godot-ad9f987715831b4f1e72cfaf8d4bf6772370bf7d.tar.zst
godot-ad9f987715831b4f1e72cfaf8d4bf6772370bf7d.zip
Diffstat (limited to 'scene/animation/animation_player.cpp')
-rw-r--r--scene/animation/animation_player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index 96a59380f..91aa06906 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -364,6 +364,9 @@ void AnimationPlayer::_animation_process_animation(AnimationData *p_anim, float
if (!nc) // no node cache for this track, skip it
continue;
+ if (!a->track_is_enabled(i))
+ continue; // do nothing if the track is disabled
+
if (a->track_get_key_count(i) == 0)
continue; // do nothing if track is empty