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