diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-08-14 15:44:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 15:44:26 +0200 |
commit | 2ae7c67322fc29a91ce35267f8837734f69ad41a (patch) | |
tree | c05960afaee0f998c8848e50d252aaa199ba6739 | |
parent | 892667878a03ba9f64fb149b511bdd923f28c51d (diff) | |
parent | 796088a9116730f26797f783aec4d4c87e11aeb6 (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.cpp | 2 |
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; } |