Fix crash when playing Tween right after finishing
This commit is contained in:
parent
55bed82b05
commit
1a462bc84e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue