mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 10:34:31 +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")]
|
tool.Ifc.get_object(drawing), [tool.Ifc.get_object(e) for e in ifc_file.by_type("IfcSpace")]
|
||||||
)
|
)
|
||||||
if include:
|
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)
|
exclude = pset.get("Exclude", None)
|
||||||
if exclude:
|
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
|
return elements
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user