Fem: variable name 'children', not 'childs'

This commit is contained in:
vocx-fc
2020-01-08 01:08:19 -06:00
committed by Bernd Hahnebach
parent b8f7e7e3f3
commit 3dd6f61ccc
2 changed files with 6 additions and 6 deletions

View File

@@ -176,10 +176,10 @@ class _ViewProviderFemMeshGmsh:
return (reg_childs + gro_childs + bou_childs)
def onDelete(self, feature, subelements):
childs = self.claimChildren()
if len(childs) > 0:
children = self.claimChildren()
if len(children) > 0:
try:
for obj in childs:
for obj in children:
obj.ViewObject.show()
except Exception as err:
FreeCAD.Console.PrintError("Error in onDelete: {0} \n".format(err))

View File

@@ -108,10 +108,10 @@ class _ViewProviderFemResultMechanical:
return [self.Object.Mesh] # claimChildren needs to return a list !
def onDelete(self, feature, subelements):
childs = self.claimChildren()
if len(childs) > 0:
children = self.claimChildren()
if len(children) > 0:
try:
for obj in childs:
for obj in children:
obj.ViewObject.show()
except Exception as err:
FreeCAD.Console.PrintError("Error in onDelete: {0} \n".format(err))