Fix critical bug where default context was not set on project load

This commit is contained in:
Dion Moult
2022-10-04 10:03:52 +11:00
parent a5d49e81a0
commit d0985a23d0
+1 -1
View File
@@ -1947,7 +1947,7 @@ class IfcImporter:
def set_default_context(self):
for subcontext in self.file.by_type("IfcGeometricRepresentationSubContext"):
if subcontext.ContextIdentifier == "Body":
bpy.context.scene.BIMProperties.contexts = str(subcontext.id())
bpy.context.scene.BIMRootProperties.contexts = str(subcontext.id())
break
def link_element(self, element, obj):