aboutsummaryrefslogtreecommitdiff
path: root/scene/animation/tween.cpp
diff options
context:
space:
mode:
authorsanikoyes2016-08-31 10:27:20 +0800
committersanikoyes2016-08-31 10:27:20 +0800
commitcccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15 (patch)
tree008ed2943322229a4c1ac9dfdb9b56250436d2e3 /scene/animation/tween.cpp
parent2f0e2a78b5caaf659e078c549682e3d1347f7066 (diff)
downloadgodot-cccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15.tar.gz
godot-cccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15.tar.zst
godot-cccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15.zip
Diffstat (limited to 'scene/animation/tween.cpp')
-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 6f6f5d3af..adc8f9c8c 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;
}