diff --git a/code/PostProcessing/TriangulateProcess.cpp b/code/PostProcessing/TriangulateProcess.cpp index bc3db799e..6cc6def4f 100644 --- a/code/PostProcessing/TriangulateProcess.cpp +++ b/code/PostProcessing/TriangulateProcess.cpp @@ -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