Browse Source

Fixed Tween::start() with pending updates

Start was canceled instead of deferred in case of an update in progress.
Fixes #35441
PouleyKetchoupp 5 years ago
parent
commit
6c04c824bd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/animation/tween.cpp

+ 1 - 0
scene/animation/tween.cpp

@@ -827,6 +827,7 @@ bool Tween::start() {
 	// Are there any pending updates?
 	// Are there any pending updates?
 	if (pending_update != 0) {
 	if (pending_update != 0) {
 		// Start the tweens after deferring
 		// Start the tweens after deferring
+		call_deferred("start");
 		return true;
 		return true;
 	}
 	}