소스 검색

Fix AnimationTree state machine start()

rafallus 3 년 전
부모
커밋
5c1c1be32f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/animation/animation_node_state_machine.cpp

+ 1 - 1
scene/animation/animation_node_state_machine.cpp

@@ -346,7 +346,7 @@ double AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *p_s
 	bool do_start = (p_seek && p_time == 0) || play_start || current == StringName();
 
 	if (do_start) {
-		if (p_state_machine->start_node != StringName() && p_seek && p_time == 0) {
+		if (p_state_machine->start_node != StringName() && p_seek && p_time == 0 && current == StringName()) {
 			current = p_state_machine->start_node;
 		}