diff options
author | Silc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com> | 2024-03-10 04:33:37 +0900 |
---|---|---|
committer | Silc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com> | 2024-03-10 04:33:37 +0900 |
commit | 9ae3f79ecb511afdd5101c9f46451cdb3da20afb (patch) | |
tree | dc8aa16a4b95ab3fa69af0378d17ee3a1b66500c | |
parent | f28964805e44a5c068ce8fd9d1e00697fcd922dc (diff) | |
download | redot-engine-9ae3f79ecb511afdd5101c9f46451cdb3da20afb.tar.gz |
Fix wrong line of making flag to discrete in AnimationMixer
-rw-r--r-- | scene/animation/animation_mixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index 57732e95ca..7db2b7201b 100644 --- a/scene/animation/animation_mixer.cpp +++ b/scene/animation/animation_mixer.cpp @@ -1453,6 +1453,7 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) { t->value = Animation::blend_variant(t->value, value, blend); } } else { + t->use_discrete = true; if (seeked) { int idx = a->track_find_key(i, time, is_external_seeking ? Animation::FIND_MODE_NEAREST : Animation::FIND_MODE_EXACT, true); if (idx < 0) { @@ -1476,7 +1477,6 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) { } } } - t->use_discrete = true; } } break; case Animation::TYPE_METHOD: { |