Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
359198f137
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;