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:
authorCampbell Barton <ideasman42@gmail.com>2012-05-10 11:10:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-10 11:10:39 +0400
commit4effdf4aff29e9aa078f5d3c077fac7259be0225 (patch)
tree04126e148aaea3e1da92398541c34d4783b4e3bc /source/blender/editors/util/numinput.c
parentcaba2601eaf942d092a9cb10aefdf958c90c87f8 (diff)
fix [#31382] Loop Cut and Slide numpad (-)
investigation lead to finding 3 bugs here... - transform key input handling didnt ignore minus key on an unsigned value as it should. - not being able to set numcuts to 0 made typing in numbers not very useful. - backspace would set the cuts to an unsigned value.
Diffstat (limited to 'source/blender/editors/util/numinput.c')
-rw-r--r--source/blender/editors/util/numinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c
index 1f1d5a0c0c0..91290829662 100644
--- a/source/blender/editors/util/numinput.c
+++ b/source/blender/editors/util/numinput.c
@@ -221,7 +221,7 @@ char handleNumInput(NumInput *n, wmEvent *event)
break;
case MINUSKEY:
if (n->flag & NUM_NO_NEGATIVE)
- break;
+ return 0;
if (n->ctrl[idx]) {
n->ctrl[idx] *= -1;