From 360ed52a5cae86ce34f089614e223996ec90cd12 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Fri, 14 Sep 2018 18:06:07 +0800 Subject: [PATCH] Fix build --- src/meshquadify.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meshquadify.cpp b/src/meshquadify.cpp index aa7da991..cc7f17f6 100644 --- a/src/meshquadify.cpp +++ b/src/meshquadify.cpp @@ -10,7 +10,7 @@ int meshQuadify(void *meshlite, int meshId, const std::set positionKeyMap; for (int i = 0; i < vertexCount; i++) { float x = vertexPositions[offset + 0]; @@ -26,7 +26,7 @@ int meshQuadify(void *meshlite, int meshId, const std::set> newFaceIndicies; while (i < filledLength) { int num = faceVertexNumAndIndices[i++]; - assert(num > 0 && num <= MAX_VERTICES_PER_FACE); + Q_ASSERT(num > 0 && num <= MAX_VERTICES_PER_FACE); if (num < 3) { i += num; continue; @@ -34,7 +34,7 @@ int meshQuadify(void *meshlite, int meshId, const std::set indices; for (int j = 0; j < num; j++) { int index = faceVertexNumAndIndices[i++]; - assert(index >= 0 && index < vertexCount); + Q_ASSERT(index >= 0 && index < vertexCount); indices.push_back(index); } newFaceIndicies.push_back(indices);