Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2005-06-05 18:26:45 +0400
committerMartin Poirier <theeth@yahoo.com>2005-06-05 18:26:45 +0400
commit1dd02d4cf96a3dc124505e3761de020ba0207642 (patch)
treedbedf064922c5becb0fbf9c2654fddcb6db2862a /source/blender/src/transform_numinput.c
parentc00adc5ff8045db65fd15576b0addfd9e5c0eece (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_numinput.c')
-rwxr-xr-xsource/blender/src/transform_numinput.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/transform_numinput.c b/source/blender/src/transform_numinput.c
index b070031a7df..a2e9fe475b7 100755
--- a/source/blender/src/transform_numinput.c
+++ b/source/blender/src/transform_numinput.c
@@ -46,6 +46,8 @@
#include "MEM_guardedalloc.h"
+#include "BKE_global.h" /* for G */
+
#include "blendef.h"
#include "mydevice.h"
@@ -176,6 +178,9 @@ char handleNumInput(NumInput *n, unsigned short event)
n->ctrl[idx] = -10;
}
break;
+ case PADMINUS:
+ if(G.qual & LR_ALTKEY)
+ break;
case MINUSKEY:
if (n->flag & NUM_NO_NEGATIVE)
break;