From ec0094ef337750748cd92d2c45606d2fa10aaaaf Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 16 Sep 2024 12:33:11 +0500 Subject: [PATCH] bim.purge_unused_elements_by_class - keep list sorted --- src/bonsai/bonsai/bim/module/debug/operator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/debug/operator.py b/src/bonsai/bonsai/bim/module/debug/operator.py index 434fdf93eb..b9f1d96390 100644 --- a/src/bonsai/bonsai/bim/module/debug/operator.py +++ b/src/bonsai/bonsai/bim/module/debug/operator.py @@ -532,6 +532,7 @@ class PurgeUnusedElementsByClass(bpy.types.Operator, tool.Ifc.Operator): # IfcStructuralConnectionCondition # IfcStructuralLoad + # Keep list sorted alphabetically. whitelisted_classes = [ "IfcActorRole", "IfcAddress", @@ -559,13 +560,13 @@ class PurgeUnusedElementsByClass(bpy.types.Operator, tool.Ifc.Operator): "IfcPresentationItem", "IfcProductDefinitionShape", "IfcPropertyAbstraction", + "IfcPropertyDefinition", # A bit of a questionable one, and the odd one out from IfcRoot. "IfcRecurrencePattern", "IfcReference", "IfcRepresentation", "IfcRepresentationContext", "IfcRepresentationItem", "IfcRepresentationMap", - "IfcPropertyDefinition", # A bit of a questionable one, and the odd one out from IfcRoot. "IfcSchedulingTime", "IfcShapeAspect", "IfcTable",