improve error message when travel() is called on an AnimationNodeStateMachine when the state machine is not playing
This commit is contained in:
parent
2b95372ad1
commit
0c968d603a
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *p_st
|
||||||
// stopped, invalid state
|
// stopped, invalid state
|
||||||
String node_name = start_request;
|
String node_name = start_request;
|
||||||
start_request = StringName(); //clear 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 {
|
} else {
|
||||||
if (!_travel(p_state_machine, start_request)) {
|
if (!_travel(p_state_machine, start_request)) {
|
||||||
|
|
Loading…
Reference in a new issue