summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-10-28 21:04:22 +0200
committerkobewi <kobewi4e@gmail.com>2021-10-28 21:04:22 +0200
commit3ed20a2f5d55a13871e69837117385a056854931 (patch)
tree6c0118c87dbb99f1dcc4f4c1553796c9151b71be
parent9fb9b99cab51173c569f147664c334690f9d5d72 (diff)
Fix parallel Tweens not ending correctly
-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;