diff --git a/.gitignore b/.gitignore index 2946d78..46cc792 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ # Unity3D Generated File On Crash Reports sysinfo.txt +/Examples/ README.md.meta LICENSE.md.meta diff --git a/Scripts/Node.cs b/Scripts/Node.cs index c1883d3..d65fc03 100644 --- a/Scripts/Node.cs +++ b/Scripts/Node.cs @@ -124,7 +124,8 @@ namespace XNode { /// Removes all instance ports from the node [ContextMenu("Clear instance ports")] public void ClearInstancePorts() { - foreach (NodePort port in InstancePorts) { + List instancePorts = new List(InstancePorts); + foreach (NodePort port in instancePorts) { RemoveInstancePort(port); } }