From e7b86ae5b0be3e82c1210ca7a714775f2bb73d26 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 9 Jul 2025 18:07:52 +0500 Subject: [PATCH] bim.add_group - use dynamic description to clarify when it's adding subgroups It was kind of confusing since the icon and everything else was the same. --- src/bonsai/bonsai/bim/module/group/operator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/group/operator.py b/src/bonsai/bonsai/bim/module/group/operator.py index a33f154f97..c55c1f6a1f 100644 --- a/src/bonsai/bonsai/bim/module/group/operator.py +++ b/src/bonsai/bonsai/bim/module/group/operator.py @@ -110,6 +110,12 @@ class AddGroup(bpy.types.Operator, tool.Ifc.Operator): bl_options = {"REGISTER", "UNDO"} group: bpy.props.IntProperty() + @classmethod + def description(cls, context, properties) -> str: + if properties.group: + return "Add new subgroup to the active IfcGroup." + return "Add new IfcGroup." + def _execute(self, context): result = ifcopenshell.api.group.add_group(tool.Ifc.get()) if self.group: