diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-11-20 02:39:19 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-11-20 02:39:19 +0300 |
commit | 605e6850c2c0006ad1c1adc65f131ac3f075535d (patch) | |
tree | 36dfada5461e657a5895d00b44fa7fd208c774d1 /source | |
parent | 8522b4ede0eee597ca1c55e167365eacc76d2312 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/mesh_ops.c | 3 | ||||
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/mesh_ops.c b/source/blender/editors/mesh/mesh_ops.c index 70ab3f06b89..d436bcb207c 100644 --- a/source/blender/editors/mesh/mesh_ops.c +++ b/source/blender/editors/mesh/mesh_ops.c @@ -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); diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index aa60679321a..7152a4de851 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -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; |