From 031d37f4d95ec1f376273fb96d5572a1ec396bd1 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 17 Dec 2010 16:02:55 +0000 Subject: Bugfix #25261 Weightpaint tools now grey out when no active group exists. --- release/scripts/ui/space_view3d_toolbar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/ui/space_view3d_toolbar.py b/release/scripts/ui/space_view3d_toolbar.py index aa9dfb043fe..39d590be8c8 100644 --- a/release/scripts/ui/space_view3d_toolbar.py +++ b/release/scripts/ui/space_view3d_toolbar.py @@ -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") -- cgit v1.2.3