mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix bug where libraries didn't work in IFC2X3
This commit is contained in:
@@ -60,7 +60,11 @@ class Library(blenderbim.core.tool.Library):
|
||||
def import_references(cls, library):
|
||||
props = bpy.context.scene.BIMLibraryProperties
|
||||
props.references.clear()
|
||||
for reference in library.HasLibraryReferences:
|
||||
if tool.Ifc.get_schema() == "IFC2X3":
|
||||
references = library.LibraryReference
|
||||
else:
|
||||
references = library.HasLibraryReferences
|
||||
for reference in references:
|
||||
new = props.references.add()
|
||||
new.ifc_definition_id = reference.id()
|
||||
new.name = reference.Name or "Unnamed"
|
||||
|
||||
Reference in New Issue
Block a user