FEM: codeformating, another small one
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user