FEM: allow to make a mesh from shape without an analysis

This commit is contained in:
Bernd Hahnebach
2015-11-12 13:39:51 +01:00
parent c12676bde9
commit 8226b3a529

View File

@@ -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):