1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

Minor bugfix

This commit is contained in:
Thor Brigsted 2021-02-05 13:33:33 +01:00
parent d58845ee15
commit 75ee5d47ff

View File

@ -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);
}
/// <summary> Disconnect this port from another port </summary>