[TD]simplify embedded hatch file handling

This commit is contained in:
wandererfan
2022-11-09 14:36:08 -05:00
committed by WandererFan
parent 9c9013810e
commit 75e163213a
9 changed files with 131 additions and 212 deletions

View File

@@ -105,6 +105,17 @@ void ViewProviderHatch::onChanged(const App::Property* prop)
}
}
void ViewProviderHatch::updateData(const App::Property* prop)
{
if (prop == &(getViewObject()->HatchPattern)) {
TechDraw::DrawViewPart* parent = getViewObject()->getSourceView();
if (parent) {
parent->requestPaint();
}
}
Gui::ViewProviderDocumentObject::updateData(prop);
}
TechDraw::DrawHatch* ViewProviderHatch::getViewObject() const
{
return dynamic_cast<TechDraw::DrawHatch*>(pcObject);