mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix #3627. Error where using filters incorrectly applied includes / excludes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user