aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-30 13:09:17 +0200
committerGitHub2017-03-30 13:09:17 +0200
commitd7dd276ccc889c1fc9d50d150782bc2ed870cfd6 (patch)
tree4d4d4bebacca452d6e51094e803c8dca3bebfb20
parent7d99f388e362dddadbdd8f146bceb5c145d7b98f (diff)
parentd8c396a44f8e194cda3220a33ba84eaa982736d2 (diff)
downloadgodot-d7dd276ccc889c1fc9d50d150782bc2ed870cfd6.tar.gz
godot-d7dd276ccc889c1fc9d50d150782bc2ed870cfd6.tar.zst
godot-d7dd276ccc889c1fc9d50d150782bc2ed870cfd6.zip
Merge pull request #8208 from Shin-NiL/master
Honor the Tween's final values
-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 c455d20b1..bb7ea4717 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)