diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-02-05 01:17:51 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-02-05 01:17:51 +0300 |
commit | 549289df2761d0513578f05d0d87b0a4ec0bce3d (patch) | |
tree | 993e388b9ba57d6ac8f12c53fe75027aa3072231 /source/blender/src/space.c | |
parent | b3d84255f3a378f504ceb17dd7ed7bdc38062135 (diff) |
== Sculpt Mode ==
Fixed bug #5917, shift-c doesn't work in the sculpt mode
* Added CKEY and SHIFT+CKEY to sculptmode's shortcuts (behavior is the same as for non-sculptmode.)
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r-- | source/blender/src/space.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index eae36ef6dae..19326e0ef18 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1240,6 +1240,27 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) if(G.qual==LR_SHIFTKEY+LR_CTRLKEY) sculptmode_pmv(1); break; + case CKEY: + if(G.qual==LR_SHIFTKEY) { + view3d_home(1); + curs= give_cursor(); + curs[0]=curs[1]=curs[2]= 0.0; + allqueue(REDRAWVIEW3D, 0); + } + else if(G.qual==0) { + if (G.vd->persp==2) + /* center the camera offset */ + G.vd->camdx= G.vd->camdy= 0.0; + else { + /*non camera center*/ + curs= give_cursor(); + G.vd->ofs[0]= -curs[0]; + G.vd->ofs[1]= -curs[1]; + G.vd->ofs[2]= -curs[2]; + } + } + doredraw= 1; + break; case PAD0: case PAD1: case PAD2: case PAD3: case PAD4: case PAD5: case PAD6: case PAD7: case PAD8: case PAD9: case PADPLUSKEY: |