Skip to content

Commit 9d50af1

Browse files
committed
Disable node before destroy
1 parent f65c740 commit 9d50af1

File tree

1 file changed

+1
-0
lines changed
  • Assets/com.alelievr.NodeGraphProcessor/Runtime/Graph

1 file changed

+1
-0
lines changed

Assets/com.alelievr.NodeGraphProcessor/Runtime/Graph/BaseGraph.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ public BaseNode AddNode(BaseNode node)
228228
/// <param name="node"></param>
229229
public void RemoveNode(BaseNode node)
230230
{
231+
node.DisableInternal();
231232
node.DestroyInternal();
232233

233234
nodesPerGUID.Remove(node.GUID);

0 commit comments

Comments
 (0)