You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #89329 from TokageItLab/fix-flag-discrete
Fix wrong line of making flag to discrete in AnimationMixer
This commit is contained in:
@@ -1453,6 +1453,7 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) {
|
|||||||
t->value = Animation::blend_variant(t->value, value, blend);
|
t->value = Animation::blend_variant(t->value, value, blend);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
t->use_discrete = true;
|
||||||
if (seeked) {
|
if (seeked) {
|
||||||
int idx = a->track_find_key(i, time, is_external_seeking ? Animation::FIND_MODE_NEAREST : Animation::FIND_MODE_EXACT, true);
|
int idx = a->track_find_key(i, time, is_external_seeking ? Animation::FIND_MODE_NEAREST : Animation::FIND_MODE_EXACT, true);
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
@@ -1476,7 +1477,6 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
t->use_discrete = true;
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case Animation::TYPE_METHOD: {
|
case Animation::TYPE_METHOD: {
|
||||||
|
|||||||
Reference in New Issue
Block a user