From cccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15 Mon Sep 17 00:00:00 2001 From: sanikoyes Date: Wed, 31 Aug 2016 10:27:20 +0800 Subject: [PATCH] Tween: fix non-repeat interpolate_callback does not delete after call triggered --- scene/animation/tween.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index 6f6f5d3aff7..adc8f9c8cfc 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; }