mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix #3576. Explicit drawing annotations are now immune to "include / exclude" filters.
This commit is contained in:
@@ -314,7 +314,7 @@ class BIM_PT_references(Panel):
|
|||||||
|
|
||||||
if not self.props.is_editing_references:
|
if not self.props.is_editing_references:
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.label(text=f"{DocumentsData.data['total_references']} References Found", icon="LONGDISPLAY")
|
row.label(text=f"{DocumentsData.data['total_references']} References Found", icon="OBJECT_HIDDEN")
|
||||||
row.operator("bim.load_references", text="", icon="IMPORT")
|
row.operator("bim.load_references", text="", icon="IMPORT")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -1511,8 +1511,8 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
else:
|
else:
|
||||||
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialElement"))
|
base_elements = set(ifc_file.by_type("IfcElement") + ifc_file.by_type("IfcSpatialElement"))
|
||||||
elements = {e for e in (elements & base_elements) if e.is_a() != "IfcSpace"}
|
elements = {e for e in (elements & base_elements) if e.is_a() != "IfcSpace"}
|
||||||
annotations = tool.Drawing.get_group_elements(tool.Drawing.get_drawing_group(drawing))
|
annotations = tool.Drawing.get_group_elements(tool.Drawing.get_drawing_group(drawing))
|
||||||
elements.update(annotations)
|
elements.update(annotations)
|
||||||
|
|
||||||
exclude = pset.get("Exclude", None)
|
exclude = pset.get("Exclude", None)
|
||||||
if exclude:
|
if exclude:
|
||||||
|
|||||||
Reference in New Issue
Block a user