Fix #115276: Vertex group canvas picker errors with no active group #115666

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:115276 into main 2023-12-01 17:55:37 +01:00
1 changed files with 2 additions and 1 deletions

View File

@ -679,8 +679,9 @@ class VIEW3D_PT_slots_vertex_groups(Panel):
def draw_header(self, context):
ob = context.object
groups = ob.vertex_groups
self.bl_label = (
iface_("%s") % (ob.vertex_groups.active.name) if ob.vertex_groups else
iface_("%s") % (groups.active.name) if groups and groups.active else
iface_("Vertex Groups")
)