mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Add default when getting space collection
A case has been encountered where space object and space collection did not share the same name (eg. space.0011 and space.0021). @Moult I wonder if it is expected or if there is a consistency issue with space object/collection naming.
This commit is contained in:
@@ -26,7 +26,7 @@ import blenderbim.bim.import_ifc as import_ifc
|
||||
|
||||
|
||||
def get_boundaries_collection(blender_space):
|
||||
space_collection = bpy.data.collections.get(blender_space.name)
|
||||
space_collection = bpy.data.collections.get(blender_space.name, blender_space.users_collection[0])
|
||||
collection_name = f"Boundaries/{blender_space.BIMObjectProperties.ifc_definition_id}"
|
||||
boundaries_collection = space_collection.children.get(collection_name)
|
||||
if not boundaries_collection:
|
||||
|
||||
Reference in New Issue
Block a user