Fix crash when playing Tween right after finishing
(cherry picked from commit 1a462bc84e
)
This commit is contained in:
parent
ce310c1e39
commit
1aee1b1720
1 changed files with 1 additions and 0 deletions
|
@ -311,6 +311,7 @@ bool SceneTreeTween::step(float p_delta) {
|
||||||
running = false;
|
running = false;
|
||||||
dead = true;
|
dead = true;
|
||||||
emit_signal(SceneStringNames::get_singleton()->finished);
|
emit_signal(SceneStringNames::get_singleton()->finished);
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
emit_signal(SceneStringNames::get_singleton()->loop_finished, loops_done);
|
emit_signal(SceneStringNames::get_singleton()->loop_finished, loops_done);
|
||||||
current_step = 0;
|
current_step = 0;
|
||||||
|
|
Loading…
Reference in a new issue