diff options
author | sanikoyes <sanikoyes@163.com> | 2016-08-31 10:27:20 +0800 |
---|---|---|
committer | sanikoyes <sanikoyes@163.com> | 2016-08-31 10:27:20 +0800 |
commit | cccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15 (patch) | |
tree | 008ed2943322229a4c1ac9dfdb9b56250436d2e3 | |
parent | 2f0e2a78b5caaf659e078c549682e3d1347f7066 (diff) |
Tween: fix non-repeat interpolate_callback does not delete after call triggered
-rw-r--r-- | scene/animation/tween.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index 6f6f5d3aff..adc8f9c8cf 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -619,6 +619,8 @@ void Tween::_tween_process(float p_delta) { }; object->call(data.key, (const Variant **) arg, data.args, error); } + if (!repeat) + call_deferred("remove", object, data.key); } continue; } |