Explorar o código

Merge pull request #21913 from DualMatrix/tween_remove_all

Fixed calling start() after remove_all() on tween not working
Rémi Verschelde %!s(int64=7) %!d(string=hai) anos
pai
achega
74d80146ff
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      scene/animation/tween.cpp

+ 4 - 0
scene/animation/tween.cpp

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