summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_node_state_machine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp
index 09c36eb081..a71bacd3f6 100644
--- a/scene/animation/animation_node_state_machine.cpp
+++ b/scene/animation/animation_node_state_machine.cpp
@@ -390,7 +390,7 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm,
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) {
auto_advance_to = i;