Skip to content

Commit e1ccbfe

Browse files
committed
Reordered files, fixing graph edge manipulation
1 parent 9d241c1 commit e1ccbfe

36 files changed

+198
-105
lines changed

Editor/Editors.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Editors/Components.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Windows/FunctionTimeline.cs renamed to Editor/Editors/Components/FunctionTimeline.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public void ApplyFunctionsToTimeline()
103103
_content.Clear();
104104
_contentChilden.Clear();
105105

106-
int maxCounter = 0;
107106
for (int index = Functions.Count - 1; index >= 0; index--)
108107
{
109108
FunctionItem function = Functions[index];

Editor/Windows/TemplateGraph.cs renamed to Editor/Editors/Components/TemplateGraph.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ private void LinkTemplateNodes(TemplateNode left, TemplateNode right, string key
175175

176176
edge.input.Connect(edge);
177177
edge.output.Connect(edge);
178+
edge.SetEnabled(false);
178179
Add(edge);
179180
}
180181
}
@@ -213,6 +214,7 @@ public TemplateNode(string moduleId, TemplateAsset templateAsset, string key)
213214
Input = InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Multi, typeof(string));
214215
Input.portName = key;
215216
Input.portColor = Color.cyan;
217+
Input.edgeConnector.activators.Clear();
216218
inputContainer.Add(Input);
217219
}
218220

@@ -223,6 +225,7 @@ public TemplateNode(string moduleId, TemplateAsset templateAsset, string key)
223225
string sanitizedKeyword = keyword.Replace("#K#", "").Replace("#KI#", "");
224226
port.portName = sanitizedKeyword;
225227
port.portColor = Color.cyan;
228+
port.edgeConnector.activators.Clear();
226229
Outputs.Add(sanitizedKeyword, port);
227230
outputContainer.Add(port);
228231
}

Editor/Editors/Drawers.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)