From 74270c23d2468af114f6b5cf952d544e78d9fed5 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 12 Nov 2015 13:39:51 +0100 Subject: [PATCH] FEM: allow to make a mesh from shape without an analysis --- src/Mod/Fem/FemCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):