From b97535aeaddfeb61e0c8502784be2a17e1ef3d77 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 16 Sep 2022 14:20:12 +0200 Subject: [PATCH] Fix crash when playing Tween right after finishing (cherry picked from commit 1a462bc84e095125661efb5a0254f36e73197cd9) --- scene/animation/scene_tree_tween.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/scene_tree_tween.cpp b/scene/animation/scene_tree_tween.cpp index 3c1571798..e3b50e521 100644 --- a/scene/animation/scene_tree_tween.cpp +++ b/scene/animation/scene_tree_tween.cpp @@ -311,6 +311,7 @@ bool SceneTreeTween::step(float p_delta) { running = false; dead = true; emit_signal(SceneStringNames::get_singleton()->finished); + break; } else { emit_signal(SceneStringNames::get_singleton()->loop_finished, loops_done); current_step = 0;