diff --git a/doc/classes/AnimationNodeStateMachinePlayback.xml b/doc/classes/AnimationNodeStateMachinePlayback.xml index c79a59dfc07..653d08bd67f 100644 --- a/doc/classes/AnimationNodeStateMachinePlayback.xml +++ b/doc/classes/AnimationNodeStateMachinePlayback.xml @@ -102,11 +102,11 @@ If the path does not connect, the state machine's default transition will be used to jump to the destination state. - + - Appends a single transition to the requested state to the end of the current state machine travel path, using the state machine's default transition if a direct connection is not available. + Queues the requested state, using the state machine's default transition if a direct connection is not available. diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp index 1a2d5a450cb..3ecb324836a 100644 --- a/scene/animation/animation_node_state_machine.cpp +++ b/scene/animation/animation_node_state_machine.cpp @@ -271,7 +271,7 @@ void AnimationNodeStateMachinePlayback::queue_travel(const StringName &p_state) _travel_main(p_state, false, false, false); } -void AnimationNodeStateMachinePlayback::queue_jump(const StringName &p_state) { +void AnimationNodeStateMachinePlayback::queue(const StringName &p_state) { ERR_FAIL_COND_EDMSG(is_grouped, "Grouped AnimationNodeStateMachinePlayback must be handled by parent AnimationNodeStateMachinePlayback. You need to retrieve the parent Root/Nested AnimationNodeStateMachine."); ERR_FAIL_COND_EDMSG(String(p_state).contains("/Start") || String(p_state).contains("/End"), "Grouped AnimationNodeStateMachinePlayback doesn't allow to play Start/End directly. Instead, play the prev or next state of group in the parent AnimationNodeStateMachine."); _travel_main(p_state, false, true, false); diff --git a/scene/animation/animation_node_state_machine.h b/scene/animation/animation_node_state_machine.h index edae62a4085..3b8cc716a0a 100644 --- a/scene/animation/animation_node_state_machine.h +++ b/scene/animation/animation_node_state_machine.h @@ -333,7 +333,7 @@ public: void travel(const StringName &p_state); void jump(const StringName &p_state); void queue_travel(const StringName &p_state); - void queue_jump(const StringName &p_state); + void queue(const StringName &p_state); void start(const StringName &p_state, bool p_reset = true); void next(); void stop();