diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp index 11289500b5..ebbf1b7ed4 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp @@ -175,10 +175,6 @@ std::string ViewProviderFemConstraint::gethideMeshShowPartStr(const std::string if \""+showConstr+"\" == amesh.Name:\n\ amesh.ViewObject.Visibility = True\n\ elif \"Mesh\" in amesh.TypeId:\n\ - aparttoshow = amesh.Name.replace(\"_Mesh\",\"\")\n\ - for apart in App.activeDocument().Objects:\n\ - if aparttoshow == apart.Name:\n\ - apart.ViewObject.Visibility = True\n\ amesh.ViewObject.Visibility = False\n"; } diff --git a/src/Mod/Fem/PyGui/FemCommands.py b/src/Mod/Fem/PyGui/FemCommands.py index 230e997e41..91b05e0313 100644 --- a/src/Mod/Fem/PyGui/FemCommands.py +++ b/src/Mod/Fem/PyGui/FemCommands.py @@ -170,10 +170,6 @@ class FemCommands(object): if "Constraint" in acnstrmesh.TypeId: acnstrmesh.ViewObject.Visibility = True if "Mesh" in acnstrmesh.TypeId: - aparttoshow = acnstrmesh.Name.replace("_Mesh", "") - for apart in FreeCAD.activeDocument().Objects: - if aparttoshow == apart.Name: - apart.ViewObject.Visibility = True acnstrmesh.ViewObject.Visibility = False # OvG: Hide meshes and show constraints and meshed part e.g. on purging results ## @} diff --git a/src/Mod/Fem/PyGui/_TaskPanelFemResultShow.py b/src/Mod/Fem/PyGui/_TaskPanelFemResultShow.py index b29383c00a..fd1228f754 100644 --- a/src/Mod/Fem/PyGui/_TaskPanelFemResultShow.py +++ b/src/Mod/Fem/PyGui/_TaskPanelFemResultShow.py @@ -434,8 +434,3 @@ def hide_parts_constraints(): for acnstrmesh in FemGui.getActiveAnalysis().Member: if "Constraint" in acnstrmesh.TypeId: acnstrmesh.ViewObject.Visibility = False - if "Mesh" in acnstrmesh.TypeId: - aparttoshow = acnstrmesh.Name.replace("_Mesh", "") - for apart in FreeCAD.activeDocument().Objects: - if aparttoshow == apart.Name: - apart.ViewObject.Visibility = False