NGON encoding triangles only

pull/3695/head
Clement Jacob 2021-03-30 09:19:50 +02:00
parent 2e90fed527
commit fc0cf2ea8d
1 changed files with 2 additions and 1 deletions

View File

@ -289,7 +289,8 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh)
nface.mNumIndices = face.mNumIndices;
nface.mIndices = face.mIndices;
face.mIndices = nullptr;
ngonEncoder.ngonEncodeTriangle(&nface);
if (nface.mNumIndices == 3) ngonEncoder.ngonEncodeTriangle(&nface);
continue;
}
// optimized code for quadrilaterals