浏览代码

Merge pull request #54456 from rafallus/fix/anim_state_machine_start

Fix AnimationTree state machine start()
Rémi Verschelde 3 年之前
父节点
当前提交
0123752dc4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/animation/animation_node_state_machine.cpp

+ 1 - 1
scene/animation/animation_node_state_machine.cpp

@@ -403,7 +403,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;
 		}