FEM: Python constraints, hide meshes while constraint task panel is opened

This commit is contained in:
Bernd Hahnebach
2018-05-21 14:31:51 +02:00
committed by wmayer
parent 8243c7c194
commit 995606a2fc
9 changed files with 53 additions and 7 deletions

View File

@@ -65,6 +65,11 @@ class _ViewProviderFemElementGeometry2D:
return
def setEdit(self, vobj, mode=0):
# hide all meshes
for o in FreeCAD.ActiveDocument.Objects:
if o.isDerivedFrom("Fem::FemMeshObject"):
o.ViewObject.hide()
# show task panel
taskd = _TaskPanelFemElementGeometry2D(self.Object)
taskd.obj = vobj.Object
FreeCADGui.Control.showDialog(taskd)