Forráskód Böngészése

[shgraph] fix static target compilation

Clément Espeute 1 éve
szülő
commit
067ec75c79
1 módosított fájl, 5 hozzáadás és 5 törlés
  1. 5 5
      hrt/shgraph/ShaderGraph.hx

+ 5 - 5
hrt/shgraph/ShaderGraph.hx

@@ -136,12 +136,12 @@ typedef ShaderNodeDef = {
 };
 
 typedef Edge = {
-	outputNodeId : Int,
+	?outputNodeId : Int,
 	?nameOutput : String, // Fallback if name has changed
-	outputId : Int,
-	inputNodeId : Int,
+	?outputId : Int,
+	?inputNodeId : Int,
 	?nameInput : String, // Fallback if name has changed
-	inputId : Int,
+	?inputId : Int,
 };
 
 typedef Connection = {
@@ -700,7 +700,7 @@ class Graph {
 
 		var res = hasCycle(node);
 		node.connections[edge.inputId] = prev;
-		
+
 		if (res)
 			return false;