[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57977] trunk/blender/release/scripts/ startup/bl_ui/space_view3d_toolbar.py: remove checks for active object in the weight panel, this is incorrect for weight transfer and we better rely on operators poll functions .
Campbell Barton
ideasman42 at gmail.com
Wed Jul 3 23:07:42 CEST 2013
Revision: 57977
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57977
Author: campbellbarton
Date: 2013-07-03 21:07:41 +0000 (Wed, 03 Jul 2013)
Log Message:
-----------
remove checks for active object in the weight panel, this is incorrect for weight transfer and we better rely on operators poll functions.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2013-07-03 20:52:31 UTC (rev 57976)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2013-07-03 21:07:41 UTC (rev 57977)
@@ -1115,10 +1115,7 @@
def draw(self, context):
layout = self.layout
- ob = context.active_object
-
col = layout.column()
- col.active = ob.vertex_groups.active is not None
col.operator("object.vertex_group_normalize_all", text="Normalize All")
col.operator("object.vertex_group_normalize", text="Normalize")
col.operator("object.vertex_group_mirror", text="Mirror")
@@ -1126,10 +1123,7 @@
col.operator("object.vertex_group_clean", text="Clean")
col.operator("object.vertex_group_levels", text="Levels")
col.operator("object.vertex_group_blend", text="Blend")
- col = layout.column()
col.operator("object.vertex_group_transfer_weight", text="Transfer Weights")
- col = layout.column()
- col.active = ob.vertex_groups.active is not None
col.operator("object.vertex_group_limit_total", text="Limit Total")
col.operator("object.vertex_group_fix", text="Fix Deforms")
col.operator("paint.weight_gradient")
More information about the Bf-blender-cvs
mailing list