summaryrefslogtreecommitdiff
path: root/scene/animation/animation_node_state_machine.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-21 17:12:11 +0200
committerGitHub <noreply@github.com>2019-05-21 17:12:11 +0200
commitb6bd19dfc50b2e9884dd34aafbfe76764f8fc8e5 (patch)
tree161bcc10d9015a70e7fed059d38d200c6c5908bf /scene/animation/animation_node_state_machine.cpp
parentc29ef774d8fde7dda2a75f5966fde6815fb0358f (diff)
parent4de6c94eb048a355a12b9ec4cdfaf9d9265f2de2 (diff)
Merge pull request #29018 from guilhermefelipecgs/fix_28969
[StateMachine] Fix error message for travel method
Diffstat (limited to 'scene/animation/animation_node_state_machine.cpp')
-rw-r--r--scene/animation/animation_node_state_machine.cpp3
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);
}