1
0
mirror of synced 2024-11-28 01:10:51 +01:00

Exporting adjustment for faces to prevent errors

This commit is contained in:
KillzXGaming 2019-11-02 19:14:22 -04:00
parent 519d9a734d
commit 1472c4e112

View File

@ -194,7 +194,8 @@ namespace Toolbox.Library
{
var polygonGroup = genericObj.PolygonGroups[p];
for (int f = 0; f < polygonGroup.faces.Count; f++)
mesh.Faces.Add(new Face(new int[] { polygonGroup.faces[f++], polygonGroup.faces[f++], polygonGroup.faces[f] }));
if (f < polygonGroup.faces.Count - 2)
mesh.Faces.Add(new Face(new int[] { polygonGroup.faces[f++], polygonGroup.faces[f++], polygonGroup.faces[f] }));
}
}