summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-10-29 00:02:47 +0200
committerGitHub <noreply@github.com>2021-10-29 00:02:47 +0200
commitd3547be9ae8ae8bfbbece4757fc0759b712354a7 (patch)
tree6c0118c87dbb99f1dcc4f4c1553796c9151b71be
parent9fb9b99cab51173c569f147664c334690f9d5d72 (diff)
parent3ed20a2f5d55a13871e69837117385a056854931 (diff)
Merge pull request #54359 from KoBeWi/tween_bugged()
-rw-r--r--scene/animation/tween.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp
index c43b83747b..47e290beb3 100644
--- a/scene/animation/tween.cpp
+++ b/scene/animation/tween.cpp
@@ -291,7 +291,7 @@ bool Tween::step(float p_delta) {
float temp_delta = rem_delta;
// Turns to true if any Tweener returns true (i.e. is still not finished).
step_active = tweener->step(temp_delta) || step_active;
- step_delta = MIN(temp_delta, rem_delta);
+ step_delta = MIN(temp_delta, step_delta);
}
rem_delta = step_delta;