Răsfoiți Sursa

Fix parallel Tweens not ending correctly

kobewi 3 ani în urmă
părinte
comite
3ed20a2f5d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      scene/animation/tween.cpp

+ 1 - 1
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;