diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-09 22:20:16 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-09 22:20:16 +0100 |
commit | f45207bbf2d455ff6e16f0cafbe5b03220490c1c (patch) | |
tree | cea7f4d139066cee3a6dd1dc28b512b3a5af3212 | |
parent | 2cb884bdbd817502097795b1ae267c8ab0389c4b (diff) | |
parent | 9ae3f79ecb511afdd5101c9f46451cdb3da20afb (diff) | |
download | redot-engine-f45207bbf2d455ff6e16f0cafbe5b03220490c1c.tar.gz |
Merge pull request #89329 from TokageItLab/fix-flag-discrete
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: { |