Procházet zdrojové kódy

Fixed calling start() emmediately after remove_all() on tween not wroking

Fixed calling start() emmediately after remove_all() on tween not wroking

Fixes #19901
DualMatrix před 7 roky
rodič
revize
359198f137
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      scene/animation/tween.cpp

+ 4 - 0
scene/animation/tween.cpp

@@ -673,6 +673,10 @@ float Tween::get_speed_scale() const {
 }
 
 bool Tween::start() {
+	if (pending_update != 0) {
+		call_deferred("start");
+		return true;
+	}
 
 	set_active(true);
 	return true;