From df6777aaf3926a77fe628892ff8bb413fea6560f Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 23 May 2019 23:42:57 +0000 Subject: [PATCH] Warn on broken extrusions, like on broken polygons. It's not very obvious if the extrusion failed because in a later group, the solid (by default) uses a very dark gray color that blends into the black background. This needs to be done separately because, while we already warn on broken polygons in workplanes, many more groups can be extruded, e.g. the canonical way (for now) to mirror a group is to use a rotation, and that doesn't get checked for closed contour, since most rotations won't get extruded. --- src/textscreens.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/textscreens.cpp b/src/textscreens.cpp index 3f146fd..b7e6ca2 100644 --- a/src/textscreens.cpp +++ b/src/textscreens.cpp @@ -106,8 +106,11 @@ void TextWindow::ShowListOfGroups() { bool active = (g->h.v == SS.GW.activeGroup.v); bool shown = g->visible; bool ok = g->IsSolvedOkay(); - bool warn = g->type == Group::Type::DRAWING_WORKPLANE && - g->polyError.how != PolyError::GOOD; + bool warn = (g->type == Group::Type::DRAWING_WORKPLANE && + g->polyError.how != PolyError::GOOD) || + ((g->type == Group::Type::EXTRUDE || + g->type == Group::Type::LATHE) && + SK.GetGroup(g->opA)->polyError.how != PolyError::GOOD); int dof = g->solved.dof; char sdof[16] = "ok "; if(ok && dof > 0) {