From 75ee5d47fff5f9cca7af1e514c13e44a97272ec0 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Fri, 5 Feb 2021 13:33:33 +0100 Subject: [PATCH] Minor bugfix --- Scripts/NodePort.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index f7d6f97..9fa465e 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -301,7 +301,7 @@ namespace XNode { } // Trigger OnRemoveConnection node.OnRemoveConnection(this); - if (port != null) port.node.OnRemoveConnection(port); + if (port != null && port.IsConnectedTo(this)) port.node.OnRemoveConnection(port); } /// Disconnect this port from another port