[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33744] trunk/blender/release/scripts/ui/ space_view3d_toolbar.py: Bugfix #25261

Ton Roosendaal ton at blender.org
Fri Dec 17 17:02:55 CET 2010


Revision: 33744
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33744
Author:   ton
Date:     2010-12-17 17:02:55 +0100 (Fri, 17 Dec 2010)

Log Message:
-----------
Bugfix #25261

Weightpaint tools now grey out when no active group exists.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_view3d_toolbar.py

Modified: trunk/blender/release/scripts/ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d_toolbar.py	2010-12-17 15:51:42 UTC (rev 33743)
+++ trunk/blender/release/scripts/ui/space_view3d_toolbar.py	2010-12-17 16:02:55 UTC (rev 33744)
@@ -1077,8 +1077,11 @@
 
     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")





More information about the Bf-blender-cvs mailing list