FEM: Switch post groups to extension based system

This commit is contained in:
Stefan Tröger
2024-12-21 20:02:07 +01:00
committed by Benjamin Nauck
parent 1cff507a7f
commit a65a7feb87
19 changed files with 350 additions and 268 deletions

View File

@@ -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