diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-10-03 04:05:34 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-10-03 04:05:34 +0400 |
commit | f18c673943ee143b5bd787f14c583fd07be51560 (patch) | |
tree | f18072acd5bea766a2ef0ac31b7ec3d2d3b589e3 /source/blender/src/space.c | |
parent | df4654932566855054741782ef7dfb0105c764df (diff) |
== 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
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r-- | source/blender/src/space.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 5eceb5ee433..6226e5fd239 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -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(); } } |