mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
bim.print_unused_elements_stats - to skip colour map
This commit is contained in:
@@ -483,6 +483,9 @@ class PrintUnusedElementStats(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
ignore_classes += ["IfcTypeProduct"]
|
ignore_classes += ["IfcTypeProduct"]
|
||||||
if self.ignore_styled_items:
|
if self.ignore_styled_items:
|
||||||
ignore_classes += ["IfcStyledItem"]
|
ignore_classes += ["IfcStyledItem"]
|
||||||
|
ignore_classes += [
|
||||||
|
"IfcIndexedColourMap", # Only referenced by inverse attributes.
|
||||||
|
]
|
||||||
|
|
||||||
unused_elements = tool.Debug.print_unused_elements_stats(props.ifc_class_purge, ignore_classes)
|
unused_elements = tool.Debug.print_unused_elements_stats(props.ifc_class_purge, ignore_classes)
|
||||||
self.report({"INFO"}, f"{unused_elements} unused elements found, check the system console for the details.")
|
self.report({"INFO"}, f"{unused_elements} unused elements found, check the system console for the details.")
|
||||||
|
|||||||
Reference in New Issue
Block a user