summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2016-08-31 10:27:20 +0800
committersanikoyes <sanikoyes@163.com>2016-08-31 10:27:20 +0800
commitcccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15 (patch)
tree008ed2943322229a4c1ac9dfdb9b56250436d2e3
parent2f0e2a78b5caaf659e078c549682e3d1347f7066 (diff)
Tween: fix non-repeat interpolate_callback does not delete after call triggered
-rw-r--r--scene/animation/tween.cpp2
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;
}