assembly: fix bug in getElementInfo()

This commit is contained in:
Zheng, Lei 2019-01-14 11:16:50 +08:00
parent b9e05500c2
commit a08885ad2b

View File

@ -975,6 +975,7 @@ def getElementInfo(parent,subname,
''' '''
subnameRef = subname subnameRef = subname
parentSave = parent
names = subname.split('.') names = subname.split('.')
if isTypeOf(parent,Assembly,True): if isTypeOf(parent,Assembly,True):
@ -1092,7 +1093,7 @@ def getElementInfo(parent,subname,
# around of obscure OCCT edge transformation bug # around of obscure OCCT edge transformation bug
shape.transformShape(pla.toMatrix().inverse(),True) shape.transformShape(pla.toMatrix().inverse(),True)
return ElementInfo(Parent = parent, return ElementInfo(Parent = parentSave,
SubnameRef = subnameRef, SubnameRef = subnameRef,
Part = part, Part = part,
PartName = partName, PartName = partName,