summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2019-01-09 14:44:41 +0900
committervolzhs <volzhs@gmail.com>2019-01-09 14:44:41 +0900
commit153a3146d07661791d10a13f585e080919684afb (patch)
treee91e4141a88d0b4e1b124b265012e924e9306c71 /scene
parentf7de2c0cb3793bd289b8465bcc9af54157a54e91 (diff)
AnimationNodeTransition name begins from 0
and added "state" string for default name not to confuse it as number
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/animation_blend_tree.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp
index 243da85f27..a343a4f0ed 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);
}
}