summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-14 15:44:26 +0200
committerGitHub <noreply@github.com>2018-08-14 15:44:26 +0200
commit2ae7c67322fc29a91ce35267f8837734f69ad41a (patch)
treec05960afaee0f998c8848e50d252aaa199ba6739
parent892667878a03ba9f64fb149b511bdd923f28c51d (diff)
parent796088a9116730f26797f783aec4d4c87e11aeb6 (diff)
Merge pull request #20844 from gotnospirit/fix_tween_memory_leak
interpolation was not removed because of id mismatch
-rw-r--r--scene/animation/tween.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp
index 81fdc32788..ac8751f2bb 100644
--- a/scene/animation/tween.cpp
+++ b/scene/animation/tween.cpp
@@ -615,7 +615,7 @@ void Tween::_tween_process(float p_delta) {
emit_signal("tween_completed", object, NodePath(Vector<StringName>(), data.key, false));
// not repeat mode, remove completed action
if (!repeat)
- call_deferred("_remove", object, NodePath(Vector<StringName>(), data.key, false), true);
+ call_deferred("_remove", object, data.concatenated_key, true);
} else if (!repeat)
all_finished = all_finished && data.finish;
}