diff --git a/src/draw.cpp b/src/draw.cpp index 344c5d61..09ee0bc5 100644 --- a/src/draw.cpp +++ b/src/draw.cpp @@ -193,6 +193,8 @@ void GraphicsWindow::MakeSelected(Selection *stog) { hEntity he = s->entity; if(he.v != 0 && SK.GetEntity(he)->IsFace()) { c++; + // Modify also Group::DrawMesh "case DrawMeshAs::SELECTED:" + // Magic numers are ugly :-( if(c >= 3) s->tag = 1; } } diff --git a/src/groupmesh.cpp b/src/groupmesh.cpp index 11add4f1..3c926891 100644 --- a/src/groupmesh.cpp +++ b/src/groupmesh.cpp @@ -635,8 +635,11 @@ void Group::DrawMesh(DrawMeshAs how, Canvas *canvas) { std::vector faces; SS.GW.GroupSelection(); auto const &gs = SS.GW.gs; + // Modify also GraphicsWindow::MakeSelected "if(c >= 3) s->tag = 1;" + // Magic numers are ugly :-( if(gs.faces > 0) faces.push_back(gs.face[0].v); if(gs.faces > 1) faces.push_back(gs.face[1].v); + if(gs.faces > 2) faces.push_back(gs.face[2].v); canvas->DrawFaces(displayMesh, faces, hcf); break; }