From 8a9ea0caeb8f5589d5ab478ef3bf3b5fe1923cf3 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Fri, 12 Jun 2020 13:08:49 -0400 Subject: [PATCH] [TD]clear svg hatch on delete --- src/Mod/TechDraw/App/DrawViewPart.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawViewPart.cpp b/src/Mod/TechDraw/App/DrawViewPart.cpp index 7c779d7108de..ea096a61d47f 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.cpp +++ b/src/Mod/TechDraw/App/DrawViewPart.cpp @@ -425,7 +425,7 @@ GeometryObject* DrawViewPart::makeGeometryForShape(TopoDS_Shape shape) if (!DrawUtil::fpCompare(Rotation.getValue(),0.0)) { scaledShape = TechDraw::rotateShape(scaledShape, viewAxis, - Rotation.getValue()); + Rotation.getValue()); //conventional rotation } // BRepTools::Write(scaledShape, "DVPScaled.brep"); //debug GeometryObject* go = buildGeometryObject(scaledShape,viewAxis); @@ -622,9 +622,13 @@ void DrawViewPart::extractFaces() std::vector DrawViewPart::getHatches() const { +// Base::Console().Message("DVP::getHatches()\n"); std::vector result; std::vector children = getInList(); for (std::vector::iterator it = children.begin(); it != children.end(); ++it) { + if ((*it)->isRemoving()) { + continue; + } if ((*it)->getTypeId().isDerivedFrom(DrawHatch::getClassTypeId())) { TechDraw::DrawHatch* hatch = dynamic_cast(*it); result.push_back(hatch);