diff options
author | Matt Ebb <matt@mke3.net> | 2008-10-12 10:39:47 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2008-10-12 10:39:47 +0400 |
commit | 40221864733a34d6096eeb5ab54b2991c762809f (patch) | |
tree | 465ed4c2c5ac88cc1b21821461ae0a8b72f4af38 /source/blender/src/space.c | |
parent | 012a98988f24a13494bff3b5515057729790d225 (diff) |
* Patch #17729 from Dalai Felinto
Additional sculpt mode hotkeys to toggle Smooth stroke (Shift S) and Anchored brush (Shift A) . Menus are updated with hotkeys too. This is a real last minute one, but it was given the ok previously, and I've just had time to commit this for him.
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r-- | source/blender/src/space.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 52a646a2c64..6cd573c580d 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1523,7 +1523,10 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) break; /* Brush properties */ case AKEY: - br->flag ^= SCULPT_BRUSH_AIRBRUSH; + if(G.qual==LR_SHIFTKEY) + br->flag ^= SCULPT_BRUSH_ANCHORED; + else + br->flag ^= SCULPT_BRUSH_AIRBRUSH; update_prop= 1; break; case FKEY: if(ss) { @@ -1541,8 +1544,13 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) sd->brush_type= DRAW_BRUSH; update_prop= 1; break; case SKEY: - sd->brush_type= SMOOTH_BRUSH; - update_prop= 1; break; + if(G.qual==LR_SHIFTKEY) + sd->flags ^= SCULPT_INPUT_SMOOTH; + else { + sd->brush_type= SMOOTH_BRUSH; + update_prop= 1; + } + break; case PKEY: sd->brush_type= PINCH_BRUSH; update_prop= 1; break; |