mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Exporting adjustment for faces to prevent errors
This commit is contained in:
parent
519d9a734d
commit
1472c4e112
1 changed files with 2 additions and 1 deletions
|
@ -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] }));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue