Skip to content

Commit

Permalink
FEM: change purge_results to operate on analysis document
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Oct 19, 2015
1 parent 4996300 commit ffdc7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Fem/FemTools.py
Expand Up @@ -72,7 +72,7 @@ def __init__(self, analysis=None, test_mode=False):
def purge_results(self):
for m in self.analysis.Member:
if (m.isDerivedFrom('Fem::FemResultObject')):
FreeCAD.ActiveDocument.removeObject(m.Name)
self.analysis.Document.removeObject(m.Name)
self.results_present = False

## Resets mesh deformation
Expand Down

0 comments on commit ffdc7a4

Please sign in to comment.