From fa45aa22cbc20238f6216badd4b485fbd1c8c3a2 Mon Sep 17 00:00:00 2001 From: Silc 'Tokage' Renew Date: Sat, 11 Sep 2021 05:58:17 +0900 Subject: [PATCH] Fixed seeking behavior of property track with discrete interpolation (cherry picked from commit 6613d9cf67e75237dd4f234f32d73bf48aa9defd) --- scene/animation/animation_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index d0f1de5151e..f43abadf38d 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -954,7 +954,7 @@ void AnimationTree::_process_graph(float p_delta) { Variant::interpolate(t->value, value, blend, t->value); - } else if (delta != 0) { + } else { List indices; a->value_track_get_key_indices(i, time, delta, &indices);