PartDesign/Body: move deletion of subobjects to view provider

This commit is contained in:
Alexander Golubev
2015-08-27 15:21:22 +03:00
committed by Stefan Tröger
parent 57a913f796
commit 9db890015c
6 changed files with 42 additions and 22 deletions

View File

@@ -193,6 +193,13 @@ std::vector<App::DocumentObject*> ViewProviderBody::claimChildren3D(void)const
// }
//}
bool ViewProviderBody::onDelete ( const std::vector<std::string> &) {
Gui::Command::doCommand(Gui::Command::Doc,
"App.getDocument(\"%s\").getObject(\"%s\").removeModelFromDocument()"
,getObject()->getDocument()->getName(), getObject()->getNameInDocument());
return true;
}
void ViewProviderBody::updateData(const App::Property* prop)
{
//Base::Console().Error("ViewProviderBody::updateData for %s\n", getObject()->getNameInDocument());