Browse Source

Merge pull request #24858 from volzhs/animation-transition

AnimationNodeTransition name begins from 0
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
5f0e3b6849
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      scene/animation/animation_blend_tree.cpp

+ 1 - 2
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);
 	}
 }