mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Fix #1913. Fix bug where filtering by decomposition didn't work on IFC2X3.
This commit is contained in:
@@ -620,7 +620,9 @@ class LoadProjectElements(bpy.types.Operator):
|
|||||||
while container:
|
while container:
|
||||||
containers.add(container)
|
containers.add(container)
|
||||||
container = ifcopenshell.util.element.get_aggregate(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
|
container = None
|
||||||
elements = set()
|
elements = set()
|
||||||
for container in containers:
|
for container in containers:
|
||||||
|
|||||||
Reference in New Issue
Block a user