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.
This commit is contained in:
Andrej730
2025-07-09 18:07:52 +05:00
parent f6035609c9
commit e7b86ae5b0
@@ -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: