AnimationNodeTransition name begins from 0

and added "state" string for default name not to confuse it as number
This commit is contained in:
volzhs 2019-01-09 14:44:41 +09:00
parent f7de2c0cb3
commit 153a3146d0

View file

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