Vertex Groups Operators:
authorJoshua Leung <aligorith@gmail.com>
Thu, 19 Nov 2009 23:39:19 +0000 (23:39 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 19 Nov 2009 23:39:19 +0000 (23:39 +0000)
* 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.

source/blender/editors/mesh/mesh_ops.c
source/blender/editors/object/object_vgroup.c

index 70ab3f06b897cdea51f55d46bca30520e9bcd78b..d436bcb207c53e07a936b56c6497b9f68dfa8533 100644 (file)
@@ -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);
index aa60679321a42555cd7216692e5f59093b5aefad..7152a4de851a49b4a03eaaefb91a765938f81ef0 100644 (file)
@@ -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;