From ab6f28ab9be72ca3a8fcc9a453446bb4e91ff8cd Mon Sep 17 00:00:00 2001 From: Miguel Pereira Date: Mon, 18 Dec 2023 13:47:42 +0100 Subject: [PATCH] Displays the Animation Playback Track in the editor with the correct offset --- scene/animation/animation_mixer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index da00d1dd7b0a..d09119d73f4c 100644 --- a/scene/animation/animation_mixer.cpp +++ b/scene/animation/animation_mixer.cpp @@ -1569,7 +1569,7 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) { } } break; case Animation::TYPE_ANIMATION: { - if (p_update_only || Math::is_zero_approx(blend)) { + if (Math::is_zero_approx(blend)) { continue; } TrackCacheAnimation *t = static_cast(track); @@ -1603,7 +1603,7 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) { default: break; } - if (player2->is_playing() || seeked) { + if (!p_update_only && (player2->is_playing() || seeked)) { player2->seek(at_anim_pos); player2->play(anim_name); t->playing = true;