FEM: Fix linking errors

The static members of FemSetElementNodesObject are not defined in Fem but FemGui which the MSVC compiler doesn't like.
Furthermore it's a code smell to make them public and static and they are not even used by the class itself.
This commit is contained in:
wmayer
2024-06-18 18:14:10 +02:00
parent b8905ff87e
commit a2939767ce
3 changed files with 11 additions and 13 deletions

View File

@@ -541,7 +541,8 @@ void TaskCreateElementSet::Restore(void)
objectN.c_str());
Gui::Command::doCommand(Gui::Command::Doc, "App.ActiveDocument.recompute()");
}
else if (objectN.find(Fem::FemSetElementNodesObject::elementsName) != std::string::npos) {
else if (objectN.find(Fem::FemSetElementNodesObject::getElementName())
!= std::string::npos) {
if (elList > 0) {
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.removeObject(\'%s\')",