Merge pull request #20844 from gotnospirit/fix_tween_memory_leak

interpolation was not removed because of id mismatch
This commit is contained in:
Rémi Verschelde 2018-08-14 15:44:26 +02:00 committed by GitHub
commit 2ae7c67322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}