PartDesign: Adopt python interface to body group

This commit is contained in:
Stefan Tröger
2016-12-22 21:26:54 +01:00
committed by wmayer
parent b4a569e013
commit d2764a3c7a
12 changed files with 35 additions and 104 deletions

View File

@@ -283,7 +283,7 @@ std::vector<App::DocumentObject*> ViewProviderBody::claimChildren3D(void)const
bool ViewProviderBody::onDelete ( const std::vector<std::string> &) {
// TODO May be do it conditionally? (2015-09-05, Fat-Zer)
Gui::Command::doCommand(Gui::Command::Doc,
"App.getDocument(\"%s\").getObject(\"%s\").removeGroupFromDocument()"
"App.getDocument(\"%s\").getObject(\"%s\").removeObjectsFromDocument()"
,getObject()->getDocument()->getName(), getObject()->getNameInDocument());
return true;
}