From 359198f137bc2831b5cb50dc190f3c06314f591e Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Sun, 9 Sep 2018 23:23:15 +0200 Subject: Fixed calling start() emmediately after remove_all() on tween not wroking Fixed calling start() emmediately after remove_all() on tween not wroking Fixes #19901 --- scene/animation/tween.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index 58be636e44..e1cdcc820d 100644 --- a/scene/animation/tween.cpp +++ b/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; -- cgit v1.2.3