[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 fd9183727e
commit fb035a9a0d
5 changed files with 32 additions and 2 deletions

View File

@@ -280,6 +280,17 @@ void DrawHatch::copyFile(std::string inSpec, std::string outSpec)
}
}
void DrawHatch::unsetupObject(void)
{
// Base::Console().Message("DH::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 ---------------------------------------------------------