You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
Merge pull request #21405 from SneakyMax/fix-animation-condition-advancing
Fix advancing based on condition in AnimationNodeStateMachinePlayback
This commit is contained in:
@@ -390,7 +390,7 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm,
|
|||||||
auto_advance = true;
|
auto_advance = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sm->transitions[i].from == current && sm->transitions[i].transition->has_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) {
|
||||||
auto_advance_to = i;
|
auto_advance_to = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user