summaryrefslogtreecommitdiff
path: root/scene/animation/animation_node_state_machine.cpp
diff options
context:
space:
mode:
authornc <charles.saternos@gmail.com>2021-02-13 19:57:03 -0500
committernc <charles.saternos@gmail.com>2021-02-15 19:43:43 -0500
commit0c968d603a119821f4768e1966c9691a78e716a9 (patch)
tree743a8394953e9363985b8cc23d686abfe1e50d85 /scene/animation/animation_node_state_machine.cpp
parent2b95372ad1470e374112c5424848eea501465b86 (diff)
improve error message when travel() is called on an AnimationNodeStateMachine when the state machine is not playing
Diffstat (limited to 'scene/animation/animation_node_state_machine.cpp')
-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 71de3635f9..d46f24752e 100644
--- a/scene/animation/animation_node_state_machine.cpp
+++ b/scene/animation/animation_node_state_machine.cpp
@@ -317,7 +317,7 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *p_st
// stopped, invalid state
String node_name = start_request;
start_request = StringName(); //clear start request
- ERR_FAIL_V_MSG(0, "Can't travel to '" + node_name + "' if state machine is not playing.");
+ ERR_FAIL_V_MSG(0, "Can't travel to '" + node_name + "' if state machine is not playing. Maybe you need to enable Autoplay on Load for one of the nodes in your state machine or call .start() first?");
}
} else {
if (!_travel(p_state_machine, start_request)) {