diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-04 01:07:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-04 01:07:41 +0400 |
commit | 75aed60ed846acd994121de1d6c47ffb00a5b6c8 (patch) | |
tree | 24753ae7ac1c21364b5ff49b71721c733c1c9e2e /release/scripts/startup/bl_ui | |
parent | 2e7776b95abb60a91958938bb2840d45ad77bfbb (diff) |
remove checks for active object in the weight panel, this is incorrect for weight transfer and we better rely on operators poll functions.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 535011f184f..1383775042d 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1115,10 +1115,7 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel, Panel): 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 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel, Panel): 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") |