FEM: result and gmsh mesh obj, do not load FEM wb on double click. Only the analysis container should have this

This commit is contained in:
Bernd Hahnebach
2018-05-21 14:32:41 +02:00
committed by wmayer
parent f14eaa217f
commit 790d9ca4b2
2 changed files with 0 additions and 3 deletions

View File

@@ -79,7 +79,6 @@ class _ViewProviderFemMeshGmsh:
return
def doubleClicked(self, vobj):
FreeCADGui.activateWorkbench('FemWorkbench')
# Group meshing is only active on active analysis, we should make sure the analysis the mesh belongs too is active
gui_doc = FreeCADGui.getDocument(vobj.Object.Document)
if not gui_doc.getInEdit():

View File

@@ -63,8 +63,6 @@ class _ViewProviderFemResultMechanical:
return
def doubleClicked(self, vobj):
if FreeCADGui.activeWorkbench().name() != 'FemWorkbench':
FreeCADGui.activateWorkbench("FemWorkbench")
guidoc = FreeCADGui.getDocument(vobj.Object.Document)
# check if another VP is in edit mode, https://forum.freecadweb.org/viewtopic.php?t=13077#p104702
if not guidoc.getInEdit():