mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Fix Port Disconnect Bug (#289)
This commit is contained in:
parent
85341bf4cc
commit
1fb94b2413
@ -307,11 +307,7 @@ namespace XNode {
|
||||
// Remove the other ports connection to this port
|
||||
NodePort otherPort = connections[i].Port;
|
||||
if (otherPort != null) {
|
||||
for (int k = 0; k < otherPort.connections.Count; k++) {
|
||||
if (otherPort.connections[k].Port == this) {
|
||||
otherPort.connections.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
otherPort.connections.RemoveAll(it => { return it.Port == this; });
|
||||
}
|
||||
// Remove this ports connection to the other
|
||||
connections.RemoveAt(i);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user