Correct constraint manipulator colors
authorCampbell Barton <ideasman42@gmail.com>
Sat, 8 Apr 2017 02:08:51 +0000 (12:08 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 8 Apr 2017 02:08:51 +0000 (12:08 +1000)
Widget show as color of constrained axis

source/blender/editors/transform/transform_manipulator.c

index e12f1b4286a4095a2c4b89c4919d1001d1e34363..024d465e29cc1f620e939d27d9ce15b91a4adbbd 100644 (file)
@@ -367,22 +367,22 @@ static void manipulator_get_axis_color(
                case MAN_AXIS_TRANS_X:
                case MAN_AXIS_ROT_X:
                case MAN_AXIS_SCALE_X:
-               case MAN_AXIS_TRANS_XY:
-               case MAN_AXIS_SCALE_XY:
+               case MAN_AXIS_TRANS_YZ:
+               case MAN_AXIS_SCALE_YZ:
                        UI_GetThemeColor4fv(TH_AXIS_X, r_col);
                        break;
                case MAN_AXIS_TRANS_Y:
                case MAN_AXIS_ROT_Y:
                case MAN_AXIS_SCALE_Y:
-               case MAN_AXIS_TRANS_YZ:
-               case MAN_AXIS_SCALE_YZ:
+               case MAN_AXIS_TRANS_ZX:
+               case MAN_AXIS_SCALE_ZX:
                        UI_GetThemeColor4fv(TH_AXIS_Y, r_col);
                        break;
                case MAN_AXIS_TRANS_Z:
                case MAN_AXIS_ROT_Z:
                case MAN_AXIS_SCALE_Z:
-               case MAN_AXIS_TRANS_ZX:
-               case MAN_AXIS_SCALE_ZX:
+               case MAN_AXIS_TRANS_XY:
+               case MAN_AXIS_SCALE_XY:
                        UI_GetThemeColor4fv(TH_AXIS_Z, r_col);
                        break;
                case MAN_AXIS_TRANS_C: