summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-09-10 11:49:07 -0300
committerGitHub <noreply@github.com>2016-09-10 11:49:07 -0300
commit34d3a4b471586fedf9743f50566e0db47d8168d6 (patch)
tree5a153234fd9594a8c8d553c6d7ccb7aeb1b588e7 /scene
parent8835882d23251fcf0f7eea148c648975a898becc (diff)
parentcccea7e0b4ea6a6ac3b624b1b437d175d5c8ef15 (diff)
Merge pull request #6336 from sanikoyes/Pr-fix-inter-callback-delete
Tween: fix non-repeat interpolate_callback
Diffstat (limited to 'scene')
-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;
}