From a75bf6e216c1b336bb981322b076400c20a99e9c Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Thu, 28 Apr 2016 13:21:33 +0600 Subject: [PATCH] Fix incorrect condition ordering that causes a crash. --- src/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index e5312e8..4fec2b4 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -978,7 +978,7 @@ void SKdNode::MakeCertainEdgesInto(SEdgeList *sel, int how, bool coplanarIsInter break; case EMPHASIZED_EDGES: - if(tr->meta.face != info.tr->meta.face && info.count == 1) { + if(info.count == 1 && tr->meta.face != info.tr->meta.face) { if(CheckAndAddTrianglePair(&edgeTris, tr, info.tr)) break; // The two triangles that join at this edge come from