Ver código fonte

Fix crash when playing Tween right after finishing

kobewi 3 anos atrás
pai
commit
1a462bc84e
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      scene/animation/tween.cpp

+ 1 - 0
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;