Skip to content

Commit

Permalink
FEM: fix in ShellThicness and BeamSection
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Oct 5, 2015
1 parent 2b89aab commit b4d99aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Mod/Fem/FemBeamSection.py
Expand Up @@ -61,7 +61,10 @@ def Activated(self):
FreeCADGui.doCommand("App.activeDocument()." + FemGui.getActiveAnalysis().Name + ".Member = App.activeDocument()." + FemGui.getActiveAnalysis().Name + ".Member + [App.ActiveDocument.ActiveObject]")

def IsActive(self):
True if FemGui.getActiveAnalysis() else False
if FemGui.getActiveAnalysis():
return True
else:
return False


class _FemBeamSection:
Expand Down
5 changes: 4 additions & 1 deletion src/Mod/Fem/FemShellThickness.py
Expand Up @@ -60,7 +60,10 @@ def Activated(self):
FreeCADGui.doCommand("App.activeDocument()." + FemGui.getActiveAnalysis().Name + ".Member = App.activeDocument()." + FemGui.getActiveAnalysis().Name + ".Member + [App.ActiveDocument.ActiveObject]")

def IsActive(self):
True if FemGui.getActiveAnalysis() else False
if FemGui.getActiveAnalysis():
return True
else:
return False


class _FemShellThickness:
Expand Down

0 comments on commit b4d99aa

Please sign in to comment.