fix [#28052] PET: Shift-O cycling skips "random falloff"
authorCampbell Barton <ideasman42@gmail.com>
Thu, 21 Jul 2011 23:36:17 +0000 (23:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 21 Jul 2011 23:36:17 +0000 (23:36 +0000)
source/blender/editors/transform/transform.c
source/blender/makesdna/DNA_scene_types.h

index d3a3099..eea77e3 100644 (file)
@@ -969,7 +969,7 @@ int transformEvent(TransInfo *t, wmEvent *event)
                        break;
                case OKEY:
                        if (t->flag & T_PROP_EDIT && event->shift) {
-                               t->prop_mode = (t->prop_mode + 1) % 6;
+                               t->prop_mode = (t->prop_mode + 1) % PROP_MODE_MAX;
                                calculatePropRatio(t);
                                t->redraw |= TREDRAW_HARD;
                        }
index 3c14dac..8203a4d 100644 (file)
@@ -1107,7 +1107,8 @@ typedef struct Scene {
 #define PROP_SHARP             3
 #define PROP_LIN               4
 #define PROP_CONST             5
-#define PROP_RANDOM            6
+#define PROP_RANDOM            6
+#define PROP_MODE_MAX          7
 
 /* toolsettings->proportional */
 #define PROP_EDIT_OFF                  0