From aa43cab8206a07a37dacb4e606ef6112c1054587 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 2 Jan 2012 16:59:46 +0000 Subject: weight paint buttons now work in weight paint vertex select mode --- release/scripts/startup/bl_ui/properties_data_mesh.py | 2 +- release/scripts/startup/bl_ui/space_view3d.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index 710b49618e9..5be9e57356c 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -158,7 +158,7 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel): row = layout.row() row.prop(group, "name") - if ob.mode == 'EDIT' and ob.vertex_groups: + if ob.vertex_groups and (ob.mode == 'EDIT' or (ob.mode == 'WEIGHT_PAINT' and ob.type == 'MESH' and ob.data.use_paint_mask_vertex)): row = layout.row() sub = row.row(align=True) diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 22d0e39a54b..58816f8e8be 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1052,7 +1052,7 @@ class VIEW3D_MT_vertex_group(Menu): layout.operator("object.vertex_group_assign", text="Assign to New Group").new = True ob = context.active_object - if ob.mode == 'EDIT': + if ob.mode == 'EDIT' or (ob.mode == 'WEIGHT_PAINT' and ob.type == 'MESH' and ob.data.use_paint_mask_vertex): if ob.vertex_groups.active: layout.separator() layout.operator("object.vertex_group_assign", text="Assign to Active Group") -- cgit v1.2.3