[TD]remove Hatches from Display when deleted

This commit is contained in:
wandererfan
2020-03-11 10:05:07 -04:00
committed by WandererFan
parent b7146a5ea3
commit 0ab6ba7a5c
5 changed files with 32 additions and 2 deletions

View File

@@ -596,6 +596,7 @@ void DrawGeomHatch::setupPatIncluded(void)
}
}
//TODO: replace with FileInfo copy
//copy whole text file from inSpec to outSpec
void DrawGeomHatch::copyFile(std::string inSpec, std::string outSpec)
{
@@ -609,6 +610,18 @@ void DrawGeomHatch::copyFile(std::string inSpec, std::string outSpec)
}
}
void DrawGeomHatch::unsetupObject(void)
{
// Base::Console().Message("DGH::unsetupObject() - status: %lu removing: %d \n", getStatus(), isRemoving());
App::DocumentObject* source = Source.getValue();
DrawView* dv = dynamic_cast<DrawView*>(source);
if (dv != nullptr) {
dv->requestPaint();
}
App::DocumentObject::unsetupObject();
}
// Python Drawing feature ---------------------------------------------------------