FEM: FEMMesh2Mesh, only make the tool active on selection of a femmesh or a femmesh and a result

This commit is contained in:
Bernd Hahnebach
2016-11-25 22:59:35 +01:00
parent 04287d7aa3
commit 3e4cf998d7
2 changed files with 32 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ class _CommandFemMesh2Mesh(FemCommands):
self.resources = {'Pixmap': 'fem-fem-mesh-from-shape',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_FemMesh2Mesh", "FEM mesh to mesh"),
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_FemMesh2Mesh", "Convert the surface of a FEM mesh to a mesh")}
self.is_active = 'with_document'
self.is_active = 'with_femmesh_andor_res'
def Activated(self):
FreeCAD.ActiveDocument.openTransaction("Create FEM mesh")