assembly: fixed AsmPartGroup.getSubObjects() when partial loaded

This commit is contained in:
Zheng, Lei 2020-05-25 09:36:31 +00:00
parent 91c34b2fcb
commit 72f64e9ed5

View File

@ -309,7 +309,9 @@ class AsmPartGroup(AsmGroup):
def getSubObjects(self,obj,_reason):
# Deletion order problem may cause exception here. Just silence it
try:
return [ '{}.'.format(o.Name) for o in flattenGroup(obj) ]
if not getattr(obj.Document,'Partial',False) \
or not self.getAssembly().Object.Freeze:
return [ '{}.'.format(o.Name) for o in flattenGroup(obj) ]
except Exception:
pass