소스 검색

[animgraph] Fix default animNode input for inputs after the last

Clément Espeute 9 달 전
부모
커밋
20786c2750
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      hrt/animgraph/Node.hx

+ 3 - 1
hrt/animgraph/Node.hx

@@ -26,7 +26,9 @@ class Node
 implements hide.view.GraphInterface.IGraphNode
 #end
 {
-	public function new() {};
+	public function new() {
+		inputEdges.resize(getInputs().length);
+	};
 
 	@:s public var x : Float;
 	@:s public var y : Float;