From 1aee1b1720d8b2cc93411bd12fad2667a5e863ac 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 4dc1cf2d20e..d6aabd83ecf 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;