From 01c3db149cfcd5cb357d8fc739bbe4beb08b35e7 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 14 Jul 2012 14:03:36 +0000 Subject: Fix [#32086] Missing bevel "hold shift" for better accuracy. This commit adds "shift" and numtype to both Bevel and Inset mesh operators. It also gets rid of the magicnumber used in NumInput to str operation (currently, 20 chars per element, now defined as NUM_STR_REP_LEN in ED_numinput.h). --- source/blender/editors/include/ED_numinput.h | 1 + 1 file changed, 1 insertion(+) (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 411df88fb28..126ea13f0b2 100644 --- a/source/blender/editors/include/ED_numinput.h +++ b/source/blender/editors/include/ED_numinput.h @@ -57,6 +57,7 @@ typedef struct NumInput { /*********************** NumInput ********************************/ void initNumInput(NumInput *n); +#define NUM_STR_REP_LEN 20 /* str must be NUM_STR_LEN * (idx_max + 1) length. */ void outputNumInput(NumInput *n, char *str); short hasNumInput(NumInput *n); void applyNumInput(NumInput *n, float *vec); -- cgit v1.2.3