diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-06-05 18:26:45 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-06-05 18:26:45 +0400 |
commit | 1dd02d4cf96a3dc124505e3761de020ba0207642 (patch) | |
tree | dbedf064922c5becb0fbf9c2654fddcb6db2862a /source/blender/src/transform.c | |
parent | c00adc5ff8045db65fd15576b0addfd9e5c0eece (diff) |
As discussed in meeting, fixing Numinput annoyance in transform.
Numpad Minus can now be used all the time to type negative numbers, without interfering with PET.
WARNING Behavior change: PET area of effect is not resized with Alt-Num+ and Alt-Num- (in addition to the scrollwheel)
WARNING testing needed: it's late and the laptop here has a funny emulated numpad, so better be tested on a real keyboard by someone who is not coding past midnight.
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-x | source/blender/src/transform.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 9abc5250e49..262465c0308 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -387,8 +387,14 @@ static void transformEvent(unsigned short event, short val) { Trans.redraw= 1; } break; - case WHEELDOWNMOUSE: case PADPLUSKEY: + if(G.qual & LR_ALTKEY && Trans.flag & T_PROP_EDIT) { + Trans.propsize*= 1.1f; + calculatePropRatio(&Trans); + } + Trans.redraw= 1; + break; + case WHEELDOWNMOUSE: if(Trans.flag & T_PROP_EDIT) { Trans.propsize*= 1.1f; calculatePropRatio(&Trans); @@ -396,8 +402,14 @@ static void transformEvent(unsigned short event, short val) { else view_editmove(event); Trans.redraw= 1; break; - case WHEELUPMOUSE: case PADMINUS: + if(G.qual & LR_ALTKEY && Trans.flag & T_PROP_EDIT) { + Trans.propsize*= 0.90909090f; + calculatePropRatio(&Trans); + } + Trans.redraw= 1; + break; + case WHEELUPMOUSE: if(Trans.flag & T_PROP_EDIT) { Trans.propsize*= 0.90909090f; calculatePropRatio(&Trans); |