Skip to content

Commit 114eb5d

Browse files
committed
Fixed enable using graph in BaseNodes
1 parent 530a3db commit 114eb5d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Assets/Examples/DefaultNodes/Nodes/ParameterNode.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ protected override void Enable()
2121

2222
void UpdateOutput()
2323
{
24+
Debug.Log("graph: " + graph);
2425
var param = graph.exposedParameters.FirstOrDefault(e => e.name == propertyName);
2526

2627
if (param == null)

Assets/NodeGraphProcessor/Runtime/Elements/BaseNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ public static BaseNode CreateFromType(Type nodeType, Vector2 position)
7777
public void Initialize(BaseGraph graph)
7878
{
7979
this.graph = graph;
80+
81+
Enable();
8082
}
8183

8284
protected BaseNode()
8385
{
8486
InitializeInOutDatas();
8587

86-
Enable();
87-
8888
inputPorts = new NodeInputPortContainer(this);
8989
outputPorts = new NodeOutputPortContainer(this);
9090

0 commit comments

Comments
 (0)