public override Mesh Clone() { BodyMesh cloneBodyMesh = new BodyMesh(); cloneBodyMesh.IsNull = IsNull; cloneBodyMesh.IsDefault = IsDefault; cloneBodyMesh.IndexBuffer = IndexBuffer; cloneBodyMesh.Format = Format; cloneBodyMesh.VertexBuffer = VertexBuffer; cloneBodyMesh.Stride = Stride; cloneBodyMesh.MeshType = MeshType; return(cloneBodyMesh); }
public override Mesh Clone() { BodyMesh cloneBodyMesh = new BodyMesh(MeshType); cloneBodyMesh.IsNull = IsNull; cloneBodyMesh.IsDefault = IsDefault; cloneBodyMesh.IndexBuffer = IndexBuffer; cloneBodyMesh.Format = Format; cloneBodyMesh.VertexBuffer = VertexBuffer; cloneBodyMesh.Stride = Stride; cloneBodyMesh.TanTexture = TanTexture; foreach (SkinTexture aSkinTexture in SkinTextures) { cloneBodyMesh.SkinTextures.Add(aSkinTexture.Clone()); } return(cloneBodyMesh); }