From 1a462bc84e095125661efb5a0254f36e73197cd9 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 16 Sep 2022 14:20:12 +0200 Subject: Fix crash when playing Tween right after finishing --- scene/animation/tween.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/animation') diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index beadfbaeef..b02f1959b7 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -315,6 +315,7 @@ bool Tween::step(float p_delta) { running = false; dead = true; emit_signal(SNAME("finished")); + break; } else { emit_signal(SNAME("loop_finished"), loops_done); current_step = 0; -- cgit v1.2.3