diff --git a/mesh.cpp b/mesh.cpp index e72482e..d9cdab6 100644 --- a/mesh.cpp +++ b/mesh.cpp @@ -594,7 +594,9 @@ void SKdNode::FindEdgeOn(Vector a, Vector b, int *n, int *nOther, { (*n)++; if(tr->meta.face != m.face) { - if(tr->meta.face != 0 && m.face != 0) { + if(tr->meta.color == m.color && + tr->meta.face != 0 && m.face != 0) + { hEntity hf0 = { tr->meta.face }, hf1 = { m.face }; Entity *f0 = SS.GetEntity(hf0),