summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-20 14:42:34 +0200
committerGitHub <noreply@github.com>2021-09-20 14:42:34 +0200
commit132ad856704696942e5cbec83f871373ab068248 (patch)
treea7bc2875999301be32a191f0d6b39b1630b14b4e /scene/animation
parenta92c58ed3e50f21d4207a02ae4d4cd82f75cd5a4 (diff)
parent6613d9cf67e75237dd4f234f32d73bf48aa9defd (diff)
Merge pull request #52555 from TokageItLab/fixed-discrete-animation-seek
Fixed seeking behavior of property track with discrete interpolation
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 88fb960164..9ca8d478b1 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -958,7 +958,7 @@ void AnimationTree::_process_graph(real_t p_delta) {
Variant::interpolate(t->value, value, blend, t->value);
- } else if (delta != 0) {
+ } else {
List<int> indices;
a->value_track_get_key_indices(i, time, delta, &indices);