BIM: fix Arch_Reference update on doc restored (#25777)
* BIM: fix Arch_Reference update on doc restored Fixes: #24943 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -102,10 +102,13 @@ class ArchReference:
|
||||
def onDocumentRestored(self, obj):
|
||||
|
||||
ArchReference.setProperties(self, obj)
|
||||
self.reload = False
|
||||
if obj.ReferenceMode == "Lightweight":
|
||||
self.reload = False
|
||||
if obj.ViewObject and obj.ViewObject.Proxy:
|
||||
obj.ViewObject.Proxy.loadInventor(obj)
|
||||
else:
|
||||
self.reload = True
|
||||
self.execute(obj) # sets self.reload to False again
|
||||
|
||||
def dumps(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user