You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Fix state machine priority for auto advance
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user