Fixed AnimationTreeStateMachine transition priority (last transition was always chosen instead of least cost)
Fixes #31132
This commit is contained in:
parent
7126654eaf
commit
aaad50e4d9
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ bool AnimationNodeStateMachinePlayback::_travel(AnimationNodeStateMachine *p_sta
|
|||
|
||||
if (cost < least_cost) {
|
||||
least_cost_transition = E;
|
||||
least_cost = cost;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue