Made the rest of the PartDesign features aware of the Body

This commit is contained in:
jrheinlaender
2013-04-21 09:24:12 +04:30
committed by Stefan Tröger
parent ae7dd86b4d
commit 4f643b2218
19 changed files with 923 additions and 746 deletions

View File

@@ -115,20 +115,9 @@ void ViewProviderFillet::unsetEdit(int ModNum)
}
}
bool ViewProviderFillet::onDelete(const std::vector<std::string> &)
bool ViewProviderFillet::onDelete(const std::vector<std::string> &s)
{
// get the support and Sketch
PartDesign::Fillet* pcFillet = static_cast<PartDesign::Fillet*>(getObject());
App::DocumentObject *pcSupport = 0;
if (pcFillet->Base.getValue()){
pcSupport = static_cast<Sketcher::SketchObject*>(pcFillet->Base.getValue());
}
// if abort command deleted the object the support is visible again
if (pcSupport && Gui::Application::Instance->getViewProvider(pcSupport))
Gui::Application::Instance->getViewProvider(pcSupport)->show();
return true;
return ViewProvider::onDelete(s);
}