summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-03-30 13:09:17 +0200
committerGitHub <noreply@github.com>2017-03-30 13:09:17 +0200
commitd7dd276ccc889c1fc9d50d150782bc2ed870cfd6 (patch)
tree4d4d4bebacca452d6e51094e803c8dca3bebfb20 /scene
parent7d99f388e362dddadbdd8f146bceb5c145d7b98f (diff)
parentd8c396a44f8e194cda3220a33ba84eaa982736d2 (diff)
Merge pull request #8208 from Shin-NiL/master
Honor the Tween's final values
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/tween.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp
index c455d20b14..bb7ea47178 100644
--- a/scene/animation/tween.cpp
+++ b/scene/animation/tween.cpp
@@ -610,6 +610,7 @@ void Tween::_tween_process(float p_delta) {
_apply_tween_value(data, result);
if (data.finish) {
+ _apply_tween_value(data, data.final_val);
emit_signal("tween_completed", object, data.key);
// not repeat mode, remove completed action
if (!repeat)