From 0bf64eeb2d6613842c4179578633eba34892954f Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Thu, 6 Sep 2018 23:29:26 +0800 Subject: [PATCH] Fix build --- src/meshgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index d5dd7a4d..a8c111eb 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -502,7 +502,7 @@ void *MeshGenerator::combineComponentMesh(QString componentId, bool *inverse) std::vector positionsAfterSmooth; loadMeshVerticesPositions(m_meshliteContext, meshIdForSmooth, positionsAfterSmooth); - assert(positionsBeforeSmooth.size() == positionsAfterSmooth.size()); + Q_ASSERT(positionsBeforeSmooth.size() == positionsAfterSmooth.size()); for (size_t vertexIndex = 0; vertexIndex < positionsBeforeSmooth.size(); vertexIndex++) { const auto &oldPosition = positionsBeforeSmooth[vertexIndex];