Skip to content

Commit

Permalink
[TD]clear svg hatch on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jun 15, 2020
1 parent c19fae2 commit 8a9ea0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/TechDraw/App/DrawViewPart.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -622,9 +622,13 @@ void DrawViewPart::extractFaces()

std::vector<TechDraw::DrawHatch*> DrawViewPart::getHatches() const
{
// Base::Console().Message("DVP::getHatches()\n");
std::vector<TechDraw::DrawHatch*> result;
std::vector<App::DocumentObject*> children = getInList();
for (std::vector<App::DocumentObject*>::iterator it = children.begin(); it != children.end(); ++it) {
if ((*it)->isRemoving()) {
continue;
}
if ((*it)->getTypeId().isDerivedFrom(DrawHatch::getClassTypeId())) {
TechDraw::DrawHatch* hatch = dynamic_cast<TechDraw::DrawHatch*>(*it);
result.push_back(hatch);
Expand Down

0 comments on commit 8a9ea0c

Please sign in to comment.