diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-12 11:01:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 11:01:19 +0200 |
commit | 74d80146ff22b9bfd309cf2616e101c3619ae566 (patch) | |
tree | 36ce455ecab09597958fc567338789f62d1bd5d3 /scene/animation/tween.cpp | |
parent | ecefd07bcba655bd89a109d1370351940356dd2a (diff) | |
parent | 359198f137bc2831b5cb50dc190f3c06314f591e (diff) |
Merge pull request #21913 from DualMatrix/tween_remove_all
Fixed calling start() after remove_all() on tween not working
Diffstat (limited to 'scene/animation/tween.cpp')
-rw-r--r-- | scene/animation/tween.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index 074d36f6d9..82e2bb93e2 100644 --- a/scene/animation/tween.cpp +++ b/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; |