Merge remote-tracking branch 'origin/blender-v2.81-release'
[blender.git] / source / blender / editors / transform / transform_gizmo_2d.c
index 1015b47c304be69f13f3edc03db88d13bf44c3f4..4ae64c7ca5f085aaafaa393f6f1c161df57101fd 100644 (file)
@@ -114,6 +114,10 @@ static void gizmo2d_get_axis_color(const int axis_idx, float *r_col, float *r_co
     case MAN2D_AXIS_TRANS_Y:
       col_id = TH_AXIS_Y;
       break;
+    default:
+      BLI_assert(0);
+      col_id = TH_AXIS_Y;
+      break;
   }
 
   UI_GetThemeColor4fv(col_id, r_col);