smallerMax

pull/2045/head
Doron Adler 2018-05-30 08:49:11 +03:00
parent 3023df8f7e
commit 1ee9200277
1 changed files with 2 additions and 1 deletions

View File

@ -287,7 +287,8 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh)
// We project it onto a plane to get a 2d triangle. // We project it onto a plane to get a 2d triangle.
// Collect all vertices of of the polygon. // Collect all vertices of of the polygon.
for (tmp = 0; tmp < MIN(max,max_out+2); ++tmp) { int smallerMax = (max<=((int)max_out+2))?(max):((int)max_out+2);
for (tmp = 0; tmp < smallerMax; ++tmp) {
temp_verts3d[tmp] = verts[idx[tmp]]; temp_verts3d[tmp] = verts[idx[tmp]];
} }