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

Fixes #31132

(cherry picked from commit aaad50e4d9)
This commit is contained in:
PouleyKetchoupp 2019-08-06 23:27:25 +02:00 committed by Rémi Verschelde
parent b45ec12c8c
commit bbec80ca8a
1 changed files with 1 additions and 0 deletions

View File

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