[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24691] trunk/blender/source/blender/ editors: Vertex Groups Operators:

Joshua Leung aligorith at gmail.com
Fri Nov 20 00:39:19 CET 2009


Revision: 24691
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24691
Author:   aligorith
Date:     2009-11-20 00:39:19 +0100 (Fri, 20 Nov 2009)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/mesh_ops.c
    trunk/blender/source/blender/editors/object/object_vgroup.c

Modified: trunk/blender/source/blender/editors/mesh/mesh_ops.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/mesh_ops.c	2009-11-19 20:58:09 UTC (rev 24690)
+++ trunk/blender/source/blender/editors/mesh/mesh_ops.c	2009-11-19 23:39:19 UTC (rev 24691)
@@ -297,6 +297,9 @@
 	
 	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);

Modified: trunk/blender/source/blender/editors/object/object_vgroup.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_vgroup.c	2009-11-19 20:58:09 UTC (rev 24690)
+++ trunk/blender/source/blender/editors/object/object_vgroup.c	2009-11-19 23:39:19 UTC (rev 24691)
@@ -1575,6 +1575,7 @@
 	/* 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 @@
 	/* 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 @@
 	/* 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 @@
 	/* 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 @@
 	/* 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;





More information about the Bf-blender-cvs mailing list