assembly: fix ViewProviderAsmElementLink bounding box calculation

This commit is contained in:
Zheng, Lei 2020-07-28 13:31:57 +08:00
parent 652ea7af6c
commit 14dffc7b28

View File

@ -1661,6 +1661,11 @@ class AsmElementLink(AsmBase):
self.version = AsmVersion()
# Suppress link array (when ShowElement=True) getSubObjects, so that view
# provider getBoundingBox can work.
def getSubObjects(self, _obj, _reason):
return
def migrate(self,obj):
link = obj.LinkedObject
if not isinstance(link,tuple):