diff --git a/src/Mod/Fem/FemCommands.py b/src/Mod/Fem/FemCommands.py index e5abf07f8..3c12bc2f0 100644 --- a/src/Mod/Fem/FemCommands.py +++ b/src/Mod/Fem/FemCommands.py @@ -55,7 +55,7 @@ class FemCommands(object): elif self.is_active == 'with_results': active = FemGui.getActiveAnalysis() is not None and self.active_analysis_in_active_doc() and self.results_present() elif self.is_active == 'with_part_feature': - active = FemGui.getActiveAnalysis() is not None and self.active_analysis_in_active_doc() and self.part_feature_selected() + active = FreeCADGui.ActiveDocument is not None and self.part_feature_selected() return active def results_present(self):