public static Mesh GetOutfitMesh(Skeleton Skel, ulong id) { if (OutfitMeshes.ContainsKey(id)) { return OutfitMeshes[id]; } var mesh = new Mesh(); mesh.Read(ContentManager.GetResourceFromLongID(id)); mesh.ProcessMesh(Skel); OutfitMeshes.Add(id, mesh); return mesh; }
public static Mesh GetOutfitMesh(ulong id) { if (OutfitMeshes.ContainsKey(id)) { return OutfitMeshes[id].Clone(); } var mesh = new Mesh(); mesh.Read(new MemoryStream(ContentManager.GetResourceFromLongID(id))); //mesh.ProcessMesh(); OutfitMeshes.Add(id, mesh); return mesh; }