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

This commit is contained in:
Juan Linietsky 2019-01-27 15:21:03 -03:00
parent 2ad6212a3f
commit 70d6d0fa69

View file

@ -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