Browse Source

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 7 years ago
parent
commit
359198f137
1 changed files with 4 additions and 0 deletions
  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() {
 bool Tween::start() {
+	if (pending_update != 0) {
+		call_deferred("start");
+		return true;
+	}
 
 
 	set_active(true);
 	set_active(true);
 	return true;
 	return true;