mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Fix error loading document references in ifc2x3 after 1655341
This commit is contained in:
@@ -102,7 +102,7 @@ class Document(bonsai.core.tool.Document):
|
||||
def import_references(cls, document: ifcopenshell.entity_instance) -> None:
|
||||
props = bpy.context.scene.BIMDocumentProperties
|
||||
is_ifc2x3 = tool.Ifc.get_schema() == "IFC2X3"
|
||||
references = (document.DocumentReference or []) if is_ifc2x3 else document.HasDocumentReferences
|
||||
references = (document.DocumentReferences or []) if is_ifc2x3 else document.HasDocumentReferences
|
||||
for element in references:
|
||||
new = props.documents.add()
|
||||
new.ifc_definition_id = element.id()
|
||||
|
||||
Reference in New Issue
Block a user