Browse Source

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

Clément Espeute 9 months ago
parent
commit
20786c2750
1 changed files with 3 additions and 1 deletions
  1. 3 1
      hrt/animgraph/Node.hx

+ 3 - 1
hrt/animgraph/Node.hx

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