FEM: small code improvements (got forgotten on parent commit)

This commit is contained in:
Bernd Hahnebach
2020-01-07 23:07:08 +01:00
parent bb6228dde0
commit b8f7e7e3f3
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ class _ViewProviderFemMeshGmsh:
childs = self.claimChildren()
if len(childs) > 0:
try:
for obj in self.claimChildren():
for obj in childs:
obj.ViewObject.show()
except Exception as err:
FreeCAD.Console.PrintError("Error in onDelete: {0} \n".format(err))

View File

@@ -111,7 +111,7 @@ class _ViewProviderFemResultMechanical:
childs = self.claimChildren()
if len(childs) > 0:
try:
for obj in self.claimChildren():
for obj in childs:
obj.ViewObject.show()
except Exception as err:
FreeCAD.Console.PrintError("Error in onDelete: {0} \n".format(err))