Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 1ad2465

Browse files
committed
See IfcOpenShell#3283. Minor fix where IfcContext is abstract, so IfcProjectLibrary should be checked instead when loading filtered models.
1 parent f28e28a commit 1ad2465

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blenderbim/blenderbim/bim/import_ifc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def get_spatial_elements_filtered_by_elements(self, elements):
362362
while True:
363363
results.add(spatial_element)
364364
spatial_element = ifcopenshell.util.element.get_aggregate(spatial_element)
365-
if not spatial_element or spatial_element.is_a() in ("IfcContext", "IfcProject"):
365+
if not spatial_element or spatial_element.is_a() in ("IfcProject", "IfcProjectLibrary"):
366366
break
367367
return results
368368

0 commit comments

Comments
 (0)