Restore ViewObject implementation for all Draft objects

In my tests the code works fine. Using @AIRCAP's instructions,  I have created a 'broken' file from draft_test_objects.FCStd.
This commit is contained in:
Roy-043
2024-10-24 15:24:13 +02:00
parent 6c9ea36225
commit d218d35527
24 changed files with 226 additions and 94 deletions

View File

@@ -63,7 +63,7 @@ class DraftAnnotation(object):
return
vobj = obj.ViewObject
if not getattr(vobj, "Proxy", None):
# Object was save without GUI.
# Object was saved without GUI.
# onDocumentRestored in the object class should restore the ViewObject.
return
if hasattr(vobj, "ScaleMultiplier") and hasattr(vobj, "AnnotationStyle"):