diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2019-05-19 23:43:26 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2019-05-19 23:43:26 -0300 |
commit | 4de6c94eb048a355a12b9ec4cdfaf9d9265f2de2 (patch) | |
tree | 30a40e672bec66e2e6ff7eab94d2b492fc2eaa07 /scene | |
parent | a940b4cf640930b2decb356d395ac4cd89beefaf (diff) |
[StateMachine] Fix error message for travel method
Diffstat (limited to 'scene')
-rw-r--r-- | scene/animation/animation_node_state_machine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp index 1e3470cd90..60f8806b25 100644 --- a/scene/animation/animation_node_state_machine.cpp +++ b/scene/animation/animation_node_state_machine.cpp @@ -314,8 +314,9 @@ float AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *sm, if (start_request_travel) { if (!playing) { + String node_name = start_request; start_request = StringName(); - ERR_EXPLAIN("Can't travel to '" + String(start_request) + "' if state machine is not active."); + ERR_EXPLAIN("Can't travel to '" + node_name + "' if state machine is not playing."); ERR_FAIL_V(0); } |