FEM: codeformating, another small one

This commit is contained in:
Bernd Hahnebach
2019-06-16 23:28:21 +02:00
parent 3ae4283073
commit 1b39fe3d2d
2 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,6 @@ from pivy import coin
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
class _ViewProviderFemMaterialMechanicalNonlinear:
"A View Provider for the FemMaterialMechanicalNonlinear object"
def __init__(self, vobj):

View File

@@ -33,7 +33,6 @@ import FreeCADGui
import FemGui # needed to display the icons in TreeView
# for the panel
import FemGui
import femresult.resulttools as resulttools
from PySide import QtCore
from PySide import QtGui
@@ -658,12 +657,13 @@ def hide_femmeshes_postpiplines():
def hide_parts_constraints():
from FemGui import getActiveAnalysis
fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/General")
hide_constraints = fem_prefs.GetBool("HideConstraint", False)
if hide_constraints:
for o in FreeCAD.ActiveDocument.Objects:
if o.isDerivedFrom('Fem::FemAnalysis'):
for acnstrmesh in FemGui.getActiveAnalysis().Group:
for acnstrmesh in getActiveAnalysis().Group:
if "Constraint" in acnstrmesh.TypeId:
acnstrmesh.ViewObject.Visibility = False
break