diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 77f0d499..3ef2268c 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs b/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs index 10d2744a..ede2b961 100644 --- a/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs +++ b/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs @@ -122,13 +122,14 @@ namespace FirstPlugin VertexID++; }*/ - for (int f = 0; f < GMXHeader.Meshes[i].IndexGroup.Indices.Length / 3; f++) + for (int f = 0; f < GMXHeader.Meshes[i].IndexGroup.Indices.Length; f++) { - ushort face0 = GMXHeader.Meshes[i].IndexGroup.Indices[f + 0]; - ushort face1 = GMXHeader.Meshes[i].IndexGroup.Indices[f + 1]; - ushort face2 = GMXHeader.Meshes[i].IndexGroup.Indices[f + 2]; - - msh.faces.AddRange(new List() { face2, face1, face0, }); + msh.faces.AddRange(new int[3] + { + GMXHeader.Meshes[i].IndexGroup.Indices[f++], + GMXHeader.Meshes[i].IndexGroup.Indices[f++], + GMXHeader.Meshes[i].IndexGroup.Indices[f] + }); } renderedMesh.lodMeshes.Add(msh); diff --git a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache index 6d1c5aaa..f0de8145 100644 Binary files a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache and b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache differ