Fix [#31322] Assign to Active Group adds new group

This commit is contained in:
Bastien Montagne 2012-05-05 17:33:18 +00:00
parent 1c90c495c0
commit e9ac31bee4

@ -1157,7 +1157,7 @@ class VIEW3D_MT_vertex_group(Menu):
if ob.mode == 'EDIT' or (ob.mode == 'WEIGHT_PAINT' and ob.type == 'MESH' and ob.data.use_paint_mask_vertex): 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: if ob.vertex_groups.active:
layout.separator() layout.separator()
layout.operator("object.vertex_group_assign", text="Assign to Active Group") layout.operator("object.vertex_group_assign", text="Assign to Active Group").new = False
layout.operator("object.vertex_group_remove_from", text="Remove from Active Group").all = False layout.operator("object.vertex_group_remove_from", text="Remove from Active Group").all = False
layout.operator("object.vertex_group_remove_from", text="Remove from All").all = True layout.operator("object.vertex_group_remove_from", text="Remove from All").all = True
layout.separator() layout.separator()