summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-09-09 23:23:15 +0200
committerDualMatrix <piet.goris@gmail.com>2018-09-11 13:54:35 +0200
commit359198f137bc2831b5cb50dc190f3c06314f591e (patch)
tree97e9843982602b5adae21c03817b28f5aa5e3373
parent4b6846a59d785af3bef6a29958387ed0ee0f6575 (diff)
Fixed calling start() emmediately after remove_all() on tween not wroking
Fixed calling start() emmediately after remove_all() on tween not wroking Fixes #19901
-rw-r--r--scene/animation/tween.cpp4
1 files changed, 4 insertions, 0 deletions
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;