Fixed AnimationTreeStateMachine transition priority (last transition was always chosen instead of least cost)

Fixes #31132
This commit is contained in:
PouleyKetchoupp 2019-08-06 23:27:25 +02:00
parent 7126654eaf
commit aaad50e4d9

View file

@ -235,6 +235,7 @@ bool AnimationNodeStateMachinePlayback::_travel(AnimationNodeStateMachine *p_sta
if (cost < least_cost) {
least_cost_transition = E;
least_cost = cost;
}
}