浏览代码

[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;