diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-16 14:57:32 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-16 14:57:32 +0200 |
commit | 27a33e7efac346f57bde3f2eca389311f5b3e754 (patch) | |
tree | e328e49c8fed680fa8af744bd8c236b8622b9f7e | |
parent | 55bed82b0541c5dbefcf402cc0974fe5d05e7576 (diff) | |
parent | 1a462bc84e095125661efb5a0254f36e73197cd9 (diff) |
Merge pull request #65896 from KoBeWi/breakt_the_crash
Fix crash when playing Tween right after finishing
-rw-r--r-- | scene/animation/tween.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |