Fix #3627. Error where using filters incorrectly applied includes / excludes.

This commit is contained in:
Dion Moult
2023-08-23 11:15:21 +10:00
parent f8651430e6
commit 82f868f90c
+2 -2
View File
@@ -1529,10 +1529,10 @@ class Drawing(blenderbim.core.tool.Drawing):
tool.Ifc.get_object(drawing), [tool.Ifc.get_object(e) for e in ifc_file.by_type("IfcSpace")]
)
if include:
elements = set(ifcopenshell.util.selector.filter_elements(ifc_file, include, elements=elements))
elements = set(ifcopenshell.util.selector.filter_elements(ifc_file, include, elements=elements.copy()))
exclude = pset.get("Exclude", None)
if exclude:
elements -= set(ifcopenshell.util.selector.filter_elements(ifc_file, exclude, elements=elements))
elements -= set(ifcopenshell.util.selector.filter_elements(ifc_file, exclude, elements=elements.copy()))
return elements
@classmethod