From 3ed20a2f5d55a13871e69837117385a056854931 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 28 Oct 2021 21:04:22 +0200 Subject: [PATCH] Fix parallel Tweens not ending correctly --- scene/animation/tween.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index c43b83747b5..47e290beb34 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;