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:
@@ -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():
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user