Patch #6759: this speeds up the vertex group editing workflow a bit.

The hotkey Ctrl-G in EditMode for Meshes and Lattices, brings up a menu giving the user options to assign/remove selected vertices to a new/the active Vertex Group.

The hotkey Ctrl-Shift-G in EditMode for Meshes and Lattices, brings up a menu giving the user options to change the active Vertex Group and delete the current Vertex Group.
This commit is contained in:
2007-05-30 10:36:17 +00:00
parent 86ff85932b
commit 024485b9b8
3 changed files with 115 additions and 2 deletions

View File

@@ -97,6 +97,7 @@
#include "BIF_drawscript.h"
#include "BIF_editarmature.h"
#include "BIF_editconstraint.h"
#include "BIF_editdeform.h"
#include "BIF_editfont.h"
#include "BIF_editgroup.h"
#include "BIF_editkey.h"
@@ -1835,8 +1836,20 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
break;
case GKEY:
if(G.qual == LR_CTRLKEY)
group_operation_with_menu();
if((G.qual == LR_CTRLKEY)) {
if(G.obedit) {
if(ELEM(G.obedit->type, OB_MESH, OB_LATTICE))
vgroup_assign_with_menu();
}
else
group_operation_with_menu();
}
else if((G.qual == (LR_CTRLKEY|LR_SHIFTKEY))) {
if(G.obedit) {
if(ELEM(G.obedit->type, OB_MESH, OB_LATTICE))
vgroup_operation_with_menu();
}
}
else if((G.qual==LR_SHIFTKEY))
if(G.obedit) {
if(G.obedit->type==OB_MESH)