FEM: Correctly implement Drag/Drop for post objects

This commit is contained in:
Stefan Tröger
2024-12-22 11:56:47 +01:00
committed by Benjamin Nauck
parent 3f87627484
commit f90b7a5755
8 changed files with 60 additions and 0 deletions

View File

@@ -143,6 +143,13 @@ void FemPostGroupExtension::onExtendedUnsetupObject()
}
}
bool FemPostGroupExtension::allowObject(App::DocumentObject* obj)
{
// only filters may be added
return obj->isDerivedFrom(Fem::FemPostFilter::getClassTypeId());
}
void FemPostGroupExtension::recomputeChildren()
{
for (const auto& obj : Group.getValues()) {