REVIEWED: ExportMesh() #2138
This commit is contained in:
parent
864e3ee9f3
commit
5a6aa52a7c
1 changed files with 5 additions and 5 deletions
|
@ -1684,7 +1684,7 @@ bool ExportMesh(Mesh mesh, const char *fileName)
|
|||
byteCount += sprintf(txtData + byteCount, "vn %.3f %.3f %.3f\n", mesh.normals[v], mesh.normals[v + 1], mesh.normals[v + 2]);
|
||||
}
|
||||
|
||||
for (int i = 0; i < mesh.triangleCount; i += 3)
|
||||
for (int i = 0; i < mesh.triangleCount; i++)
|
||||
{
|
||||
byteCount += sprintf(txtData + byteCount, "f %i/%i/%i %i/%i/%i %i/%i/%i\n", i, i, i, i + 1, i + 1, i + 1, i + 2, i + 2, i + 2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue