Quellcode durchsuchen

[shgraph] fix static target compilation

Clément Espeute vor 1 Jahr
Ursprung
Commit
067ec75c79
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  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;