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>2010-02-23 02:25:34 +0300
committerMartin Poirier <theeth@yahoo.com>2010-02-23 02:25:34 +0300
commita8d364ce4accb900c690229925356ba2ffabdc74 (patch)
treedccaeb695cd57ab1f63311e2f87b586b705ae7f7 /source/blender/editors/include/ED_numinput.h
parent8a31fab3041d4c9804fdce036dc70637f4993507 (diff)
Move increment value into numinput structure.
Easier for transform to have different values per transform then (also different from gears values). (Based on a bug reported by Jonathan Smith)
Diffstat (limited to 'source/blender/editors/include/ED_numinput.h')
-rw-r--r--source/blender/editors/include/ED_numinput.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_numinput.h b/source/blender/editors/include/ED_numinput.h
index 381131c8b2d..ca5dc4797de 100644
--- a/source/blender/editors/include/ED_numinput.h
+++ b/source/blender/editors/include/ED_numinput.h
@@ -33,6 +33,7 @@ typedef struct NumInput {
char inv[3]; /* If the value is inverted or not */
float val[3]; /* Direct value of the input */
int ctrl[3]; /* Control to indicate what to do with the numbers that are typed */
+ float increment;
} NumInput ;
/* NUMINPUT FLAGS */
@@ -48,7 +49,7 @@ void initNumInput(NumInput *n);
void outputNumInput(NumInput *n, char *str);
short hasNumInput(NumInput *n);
void applyNumInput(NumInput *n, float *vec);
-char handleNumInput(NumInput *n, struct wmEvent *event, float increment);
+char handleNumInput(NumInput *n, struct wmEvent *event);
#define NUM_MODAL_INCREMENT_UP 18
#define NUM_MODAL_INCREMENT_DOWN 19