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.
pull/434/head
whitequark 2019-05-23 23:42:57 +00:00
parent 43a59e212f
commit df6777aaf3
1 changed files with 5 additions and 2 deletions

View File

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