mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
See #2760. Fix bug where groups UI had undefined variable.
This commit is contained in:
@@ -103,14 +103,14 @@ class BIM_PT_object_groups(Panel):
|
|||||||
row.label(text=f"{ObjectGroupsData.data['total_groups']} Groups in IFC Project", icon="OUTLINER")
|
row.label(text=f"{ObjectGroupsData.data['total_groups']} Groups in IFC Project", icon="OUTLINER")
|
||||||
row.operator("bim.toggle_assigning_group", text="", icon="ADD")
|
row.operator("bim.toggle_assigning_group", text="", icon="ADD")
|
||||||
|
|
||||||
for group in ObjectGroupsData.data['groups']:
|
for group in ObjectGroupsData.data["groups"]:
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.label(text=group["name"])
|
row.label(text=group["name"])
|
||||||
op = row.operator("bim.unassign_group", text="", icon="X")
|
op = row.operator("bim.unassign_group", text="", icon="X")
|
||||||
op.group = group["id"]
|
op.group = group["id"]
|
||||||
|
|
||||||
if not groups_object:
|
if not ObjectGroupsData.data["groups"]:
|
||||||
self.layout.label(text="No Group associated with Active Object")
|
self.layout.label(text="No Associated Groups")
|
||||||
|
|
||||||
|
|
||||||
class BIM_UL_groups(UIList):
|
class BIM_UL_groups(UIList):
|
||||||
|
|||||||
Reference in New Issue
Block a user