Fix incorrect condition ordering that causes a crash.

pull/4/head
EvilSpirit 2016-04-28 13:21:33 +06:00 committed by whitequark
parent f5d8b1dc6b
commit a75bf6e216
1 changed files with 1 additions and 1 deletions

View File

@ -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