mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 06:33:16 +00:00
Fix capture interpolation mode in Animation, closes #24015
This commit is contained in:
parent
d8b702b566
commit
0c54e6344b
@ -1815,7 +1815,7 @@ Variant Animation::value_track_interpolate(int p_track, float p_time) const {
|
||||
|
||||
bool ok = false;
|
||||
|
||||
Variant res = _interpolate(vt->values, p_time, vt->update_mode == UPDATE_CONTINUOUS ? vt->interpolation : INTERPOLATION_NEAREST, vt->loop_wrap, &ok);
|
||||
Variant res = _interpolate(vt->values, p_time, (vt->update_mode == UPDATE_CONTINUOUS || vt->update_mode == UPDATE_CAPTURE) ? vt->interpolation : INTERPOLATION_NEAREST, vt->loop_wrap, &ok);
|
||||
|
||||
if (ok) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user