mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Fix critical bug where default context was not set on project load
This commit is contained in:
@@ -1947,7 +1947,7 @@ class IfcImporter:
|
|||||||
def set_default_context(self):
|
def set_default_context(self):
|
||||||
for subcontext in self.file.by_type("IfcGeometricRepresentationSubContext"):
|
for subcontext in self.file.by_type("IfcGeometricRepresentationSubContext"):
|
||||||
if subcontext.ContextIdentifier == "Body":
|
if subcontext.ContextIdentifier == "Body":
|
||||||
bpy.context.scene.BIMProperties.contexts = str(subcontext.id())
|
bpy.context.scene.BIMRootProperties.contexts = str(subcontext.id())
|
||||||
break
|
break
|
||||||
|
|
||||||
def link_element(self, element, obj):
|
def link_element(self, element, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user