浏览代码

Fix problem blending from state to state in statemachine node, closes #21944

Juan Linietsky 6 年之前
父节点
当前提交
70d6d0fa69
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/animation/animation_node_state_machine.cpp

+ 1 - 1
scene/animation/animation_node_state_machine.cpp

@@ -373,7 +373,7 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm,
 
 	if (fading_from != StringName()) {
 
-		sm->blend_node(current, sm->states[fading_from].node, p_time, p_seek, 1.0 - fade_blend, AnimationNode::FILTER_IGNORE, false);
+		sm->blend_node(fading_from, sm->states[fading_from].node, p_time, p_seek, 1.0 - fade_blend, AnimationNode::FILTER_IGNORE, false);
 	}
 
 	//guess playback position