public Strip Clone() { Strip result = (Strip)MemberwiseClone(); result.Indexes = (ushort[])Indexes.Clone(); if (UVs != null) { result.UVs = new UV[UVs.Length]; for (int i = 0; i < UVs.Length; i++) { result.UVs[i] = UVs[i].Clone(); } } if (VColors != null) { result.VColors = (Color[])VColors.Clone(); } if (UserFlags1 != null) { result.UserFlags1 = (ushort[])UserFlags1.Clone(); } if (UserFlags2 != null) { result.UserFlags2 = (ushort[])UserFlags2.Clone(); } if (UserFlags3 != null) { result.UserFlags3 = (ushort[])UserFlags3.Clone(); } return(result); }
public override Poly Clone() { Strip result = (Strip)base.Clone(); if (result.UserFlags1 != null) { result.UserFlags1 = (ushort[])UserFlags1.Clone(); } if (result.UserFlags2 != null) { result.UserFlags2 = (ushort[])UserFlags2.Clone(); } if (result.UserFlags3 != null) { result.UserFlags3 = (ushort[])UserFlags3.Clone(); } return(result); }