Merge pull request #25830 from guilhermefelipecgs/fix_state_machine_priority
Fix state machine priority for auto advance
This commit is contained in:
commit
399b0cd529
@ -421,7 +421,8 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm,
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user