From 153a3146d07661791d10a13f585e080919684afb Mon Sep 17 00:00:00 2001 From: volzhs Date: Wed, 9 Jan 2019 14:44:41 +0900 Subject: [PATCH] AnimationNodeTransition name begins from 0 and added "state" string for default name not to confuse it as number --- scene/animation/animation_blend_tree.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp index 243da85f278..a343a4f0ed4 100644 --- a/scene/animation/animation_blend_tree.cpp +++ b/scene/animation/animation_blend_tree.cpp @@ -835,12 +835,11 @@ AnimationNodeTransition::AnimationNodeTransition() { time = "time"; current = "current"; prev_current = "prev_current"; - ; enabled_inputs = 0; for (int i = 0; i < MAX_INPUTS; i++) { inputs[i].auto_advance = false; - inputs[i].name = itos(i + 1); + inputs[i].name = "state " + itos(i); } }