== Armature Layer/Move Bone to Layer Popups ==
This commit adds a few quick tools for riggers. In Editmode for Armatures, I've added the popups that show up in PoseMode when Shift-MKEY and MKEY are used. This should speed up the workflow a bit, by requiring less trips between the 3d-view and the buttons panel, as well as providing a 'batch' move-bones-to-layer functionality. Usage Notes: * MKEY - move selected bones to layer(s) * SHIFT-MKEY - change the currently visible armature layers * CTRL-MKEY - mirror selected bones
This commit is contained in:
@@ -2086,16 +2086,19 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
break;
|
||||
case MKEY:
|
||||
if(G.obedit){
|
||||
if(G.qual==LR_ALTKEY) {
|
||||
if (ELEM(G.qual, 0, LR_SHIFTKEY) && (G.obedit->type==OB_ARMATURE)) {
|
||||
pose_movetolayer();
|
||||
}
|
||||
else if (G.qual==LR_ALTKEY) {
|
||||
if(G.obedit->type==OB_MESH) {
|
||||
mergemenu();
|
||||
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
|
||||
}
|
||||
}
|
||||
else if((G.qual==0) || (G.qual==LR_CTRLKEY)) {
|
||||
else if ((G.qual==0) || (G.qual==LR_CTRLKEY)) {
|
||||
mirrormenu();
|
||||
}
|
||||
if ( G.qual == (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) ) {
|
||||
else if ( G.qual == (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) ) {
|
||||
if(G.obedit->type==OB_MESH) select_non_manifold();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user