From a8d364ce4accb900c690229925356ba2ffabdc74 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 22 Feb 2010 23:25:34 +0000 Subject: 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) --- source/blender/editors/include/ED_numinput.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/include/ED_numinput.h') 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 -- cgit v1.2.3