diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index 1823aa9c..cea80b85 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -136,7 +136,7 @@ void MeshGenerator::loadVertexSources(void *meshliteContext, int meshId, QUuid p int i = 0; 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 (4 != num) { i += num; continue;