Merge pull request #29018 from guilhermefelipecgs/fix_28969

[StateMachine] Fix error message for travel method
This commit is contained in:
Rémi Verschelde 2019-05-21 17:12:11 +02:00 committed by GitHub
commit b6bd19dfc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}