Fix wrong line of making flag to discrete in AnimationMixer

This commit is contained in:
Silc Lizard (Tokage) Renew 2024-03-10 04:33:37 +09:00
parent f28964805e
commit 9ae3f79ecb
1 changed files with 1 additions and 1 deletions

View File

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