Fix #1913. Fix bug where filtering by decomposition didn't work on IFC2X3.

This commit is contained in:
Dion Moult
2021-12-10 10:14:43 +11:00
parent 12699f29b7
commit ce5db914db
@@ -620,7 +620,9 @@ class LoadProjectElements(bpy.types.Operator):
while container:
containers.add(container)
container = ifcopenshell.util.element.get_aggregate(container)
if container.is_a("IfcContext"):
if self.file.schema == "IFC2X3" and container.is_a("IfcProject"):
container = None
elif self.file.schema != "IFC2X3" and container.is_a("IfcContext"):
container = None
elements = set()
for container in containers: