Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2010-12-17 19:02:55 +0300
committerTon Roosendaal <ton@blender.org>2010-12-17 19:02:55 +0300
commit031d37f4d95ec1f376273fb96d5572a1ec396bd1 (patch)
treef11d39ef5feb75d6e91e819ff9507a6daf55dfa8 /release
parentf90a2123eedc6cb82cfe9ad1c2ab64ba2f1e0c38 (diff)
Bugfix #25261
Weightpaint tools now grey out when no active group exists.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_view3d_toolbar.py5
1 files changed, 4 insertions, 1 deletions
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")