Weightpaint tools now grey out when no active group exists.
This commit is contained in:
Ton Roosendaal 2010-12-17 16:02:55 +00:00
parent f90a2123ee
commit 031d37f4d9

@ -1077,8 +1077,11 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel, bpy.types.Panel):
def draw(self, context):
layout = self.layout
ob = context.active_object
col = layout.column()
col.active = ob.vertex_groups.active != None
col.operator("object.vertex_group_normalize_all", text="Normalize All")
col.operator("object.vertex_group_normalize", text="Normalize")
col.operator("object.vertex_group_invert", text="Invert")