mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
Fixed outOfSync bug in ClearInstancePorts
This commit is contained in:
parent
cf348d495b
commit
73172a1c48
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,5 +20,6 @@
|
|||||||
# Unity3D Generated File On Crash Reports
|
# Unity3D Generated File On Crash Reports
|
||||||
sysinfo.txt
|
sysinfo.txt
|
||||||
|
|
||||||
|
/Examples/
|
||||||
README.md.meta
|
README.md.meta
|
||||||
LICENSE.md.meta
|
LICENSE.md.meta
|
||||||
|
|||||||
@ -124,7 +124,8 @@ namespace XNode {
|
|||||||
/// <summary> Removes all instance ports from the node </summary>
|
/// <summary> Removes all instance ports from the node </summary>
|
||||||
[ContextMenu("Clear instance ports")]
|
[ContextMenu("Clear instance ports")]
|
||||||
public void ClearInstancePorts() {
|
public void ClearInstancePorts() {
|
||||||
foreach (NodePort port in InstancePorts) {
|
List<NodePort> instancePorts = new List<NodePort>(InstancePorts);
|
||||||
|
foreach (NodePort port in instancePorts) {
|
||||||
RemoveInstancePort(port);
|
RemoveInstancePort(port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user