From 969a25b697e9f7961fe0ea6bb4f8c6626306b056 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sat, 29 Jun 2019 19:12:45 +0930 Subject: [PATCH] Fix crash in cut face nodes ordering The comparison function of std::sort requires only return true when first is less than second, this is the rule of "strict weak ordering". --- src/meshgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshgenerator.cpp b/src/meshgenerator.cpp index 2dd97913..cc93a74d 100644 --- a/src/meshgenerator.cpp +++ b/src/meshgenerator.cpp @@ -251,7 +251,7 @@ nodemesh::Combiner::Mesh *MeshGenerator::combinePartMesh(const QString &partIdSt } else if (firstRadius > secondRadius) { return false; } else { - return true; + return false; } } }