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:
parent
b45ec12c8c
commit
bbec80ca8a
|
@ -235,6 +235,7 @@ bool AnimationNodeStateMachinePlayback::_travel(AnimationNodeStateMachine *sm, c
|
||||||
|
|
||||||
if (cost < least_cost) {
|
if (cost < least_cost) {
|
||||||
least_cost_transition = E;
|
least_cost_transition = E;
|
||||||
|
least_cost = cost;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue