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 d3a30991aa62ee387199ea1d8815aa6aba134aac..eea77e36f7c5dc5475d671cea8f30b694a07c241 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 3c14dacf9735f4eb9b2e8c0b5f15dfad8b5cf838..8203a4dd77c14a0f2575d9abd7791044ff6d91b9 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