Fix state machine priority for auto advance
This commit is contained in:
parent
c4835c4345
commit
67eda1d4dd
|
@ -421,7 +421,8 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm,
|
||||||
|
|
||||||
if (sm->transitions[i].from == current && auto_advance) {
|
if (sm->transitions[i].from == current && auto_advance) {
|
||||||
|
|
||||||
if (sm->transitions[i].transition->get_priority() < priority_best) {
|
if (sm->transitions[i].transition->get_priority() <= priority_best) {
|
||||||
|
priority_best = sm->transitions[i].transition->get_priority();
|
||||||
auto_advance_to = i;
|
auto_advance_to = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue