See #3700. Fix issue in drawing include filter where "addition" selections like GlobalIds and classes didn't have any impact.

This commit is contained in:
Dion Moult
2023-09-04 15:59:03 +10:00
parent e336c63005
commit ed9f50298c
+1 -1
View File
@@ -1509,7 +1509,7 @@ class Drawing(blenderbim.core.tool.Drawing):
elements = cls.get_elements_in_camera_view(tool.Ifc.get_object(drawing), bpy.data.objects)
include = pset.get("Include", None)
if include:
elements = ifcopenshell.util.selector.filter_elements(ifc_file, include, elements=elements)
elements = ifcopenshell.util.selector.filter_elements(ifc_file, include)
else:
if tool.Ifc.get_schema() == "IFC2X3":
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialStructureElement"))