Vertex Groups Operators:

* Added Ctrl-G hotkey back for displaying a menu showing the available Vertex Group operators

* Added descriptions for a few Vertex Group operators. The difference between "normalize" and "clean" isn't that obvious from just reading the code, so perhaps some attention to this is needed.
This commit is contained in:
Joshua Leung 2009-11-19 23:39:19 +00:00
parent 8522b4ede0
commit 605e6850c2
2 changed files with 8 additions and 0 deletions

@ -297,6 +297,9 @@ void ED_keymap_mesh(wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "MESH_OT_knife_cut", LEFTMOUSE, KM_PRESS, 0, KKEY);
// TODO: this should probably be made to a menu instead...
WM_keymap_add_item(keymap, "OBJECT_OT_vertex_group_menu", GKEY, KM_PRESS, KM_CTRL, 0);
/* menus */
WM_keymap_add_menu(keymap, "VIEW3D_MT_edit_mesh_specials", WKEY, KM_PRESS, 0, 0);
WM_keymap_add_menu(keymap, "VIEW3D_MT_edit_mesh_faces", FKEY, KM_PRESS, KM_CTRL, 0);

@ -1575,6 +1575,7 @@ void OBJECT_OT_vertex_group_blend(wmOperatorType *ot)
/* identifiers */
ot->name= "Blend Vertex Group";
ot->idname= "OBJECT_OT_vertex_group_blend";
ot->description= "";
/* api callbacks */
ot->poll= vertex_group_poll;
@ -1608,6 +1609,7 @@ void OBJECT_OT_vertex_group_clean(wmOperatorType *ot)
/* identifiers */
ot->name= "Clean Vertex Group";
ot->idname= "OBJECT_OT_vertex_group_clean";
ot->description= "Remove Vertex Group assignments which aren't required.";
/* api callbacks */
ot->poll= vertex_group_poll;
@ -1653,6 +1655,7 @@ void OBJECT_OT_vertex_group_copy_to_linked(wmOperatorType *ot)
/* identifiers */
ot->name= "Copy Vertex Group to Linked";
ot->idname= "OBJECT_OT_vertex_group_copy_to_linked";
ot->description= "Copy Vertex Groups to all users of the same Geometry data.";
/* api callbacks */
ot->poll= vertex_group_poll;
@ -1709,6 +1712,7 @@ void OBJECT_OT_vertex_group_set_active(wmOperatorType *ot)
/* identifiers */
ot->name= "Set Active Vertex Group";
ot->idname= "OBJECT_OT_vertex_group_set_active";
ot->description= "Set the active vertex group.";
/* api callbacks */
ot->poll= vertex_group_poll;
@ -1762,6 +1766,7 @@ void OBJECT_OT_vertex_group_menu(wmOperatorType *ot)
/* identifiers */
ot->name= "Vertex Group Menu";
ot->idname= "OBJECT_OT_vertex_group_menu";
ot->description= "Menu showing the operators available for editing Vertex Groups";
/* api callbacks */
ot->poll= vertex_group_poll;