FEM: Switch post groups to extension based system
This commit is contained in:
committed by
Benjamin Nauck
parent
a4558f31b4
commit
a5e66bf542
@@ -1067,7 +1067,15 @@ bool ViewProviderFemPostObject::onDelete(const std::vector<std::string>&)
|
||||
{
|
||||
// warn the user if the object has unselected children
|
||||
auto objs = claimChildren();
|
||||
return ViewProviderFemAnalysis::checkSelectedChildren(objs, this->getDocument(), "pipeline");
|
||||
if (!ViewProviderFemAnalysis::checkSelectedChildren(objs, this->getDocument(), "pipeline")) {
|
||||
return false;
|
||||
};
|
||||
|
||||
// delete all subelements
|
||||
for(auto obj : objs) {
|
||||
getObject()->getDocument()->removeObject(obj->getNameInDocument());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ViewProviderFemPostObject::canDelete(App::DocumentObject* obj) const
|
||||
|
||||
Reference in New Issue
Block a user