From 261d42cd843d4eba82170193ccaea960cd4376b8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 8 Feb 2019 09:29:08 +1100 Subject: Cleanup: clear deprecated flags --- source/blender/makesdna/DNA_scene_types.h | 19 +++++++++---------- source/blender/makesdna/DNA_userdef_types.h | 13 ++++--------- 2 files changed, 13 insertions(+), 19 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index d5b096d004a..e1819fcb226 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -663,8 +663,8 @@ typedef struct RenderData { int mode; /** - * What to do with the sky/background. Picks sky/premul/key - * blending for the background + * What to do with the sky/background. + * Picks sky/premul blending for the background. */ short alphamode; @@ -1828,8 +1828,9 @@ typedef struct Scene { /* RenderData.seq_flag */ enum { - // R_SEQ_GL_PREV = (1 << 1), // UNUSED, we just use setting from seq_prev_type now. - // R_SEQ_GL_REND = (1 << 2), // UNUSED, opengl render has its own operator now. + R_SEQ_DEPRECATED_0 = (1 << 0), /* cleared */ + R_SEQ_DEPRECATED_1 = (1 << 1), /* cleared */ + R_SEQ_DEPRECATED_3 = (1 << 2), /* cleared */ R_SEQ_SOLID_TEX = (1 << 3), R_SEQ_CAMERA_DOF = (1 << 4), }; @@ -1899,16 +1900,15 @@ enum { R_STAMP_RENDERTIME|R_STAMP_CAMERALENS|R_STAMP_MEMORY| \ R_STAMP_HIDE_LABELS|R_STAMP_FRAME_RANGE|R_STAMP_HOSTNAME) -/* RenderData.alphamode */ +/** #RenderData.alphamode */ #define R_ADDSKY 0 #define R_ALPHAPREMUL 1 -/*#define R_ALPHAKEY 2*/ /* deprecated, shouldn't be used */ /* RenderData.color_mgt_flag */ enum { /** deprecated, should only be used in versioning code only */ R_COLOR_MANAGEMENT = (1 << 0), - /*R_COLOR_MANAGEMENT_PREDIVIDE = (1 << 1)*/ /* deprecated, shouldn't be used */ + R_COLOR_MANAGEMENT_DEPRECATED_1 = (1 << 1), }; #ifdef DNA_DEPRECATED @@ -2192,8 +2192,7 @@ typedef enum eSculptFlags { SCULPT_LOCK_Y = (1 << 4), SCULPT_LOCK_Z = (1 << 5), - /* deprecated, part of paint struct symmetry_flags now */ - SCULPT_SYMMETRY_FEATHER = (1 << 6), + SCULPT_FLAG_DEPRECATED_6 = (1 << 6), /* cleared */ SCULPT_USE_OPENMP = (1 << 7), SCULPT_ONLY_DEFORM = (1 << 8), @@ -2359,7 +2358,7 @@ typedef enum eGPencil_Guide_Reference { #define PE_DEFLECT_EMITTER (1 << 2) #define PE_INTERPOLATE_ADDED (1 << 3) #define PE_DRAW_PART (1 << 4) -/* #define PE_X_MIRROR (1 << 6) */ /* deprecated */ +#define PE_DEPRECATED_6 (1 << 6) /* cleared */ #define PE_FADE_TIME (1 << 7) #define PE_AUTO_VELOCITY (1 << 8) diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 29b0dae275d..b90a3d89603 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -252,12 +252,6 @@ typedef struct ThemeSpace { /** Region background. */ char execution_buts[4]; - /* float panel */ -/* char panel[4]; unused */ -/* char panel_title[4]; unused */ -/* char panel_text[4]; unused */ -/* char panel_text_hi[4]; unused */ - /* note, cannot use name 'panel' because of DNA mapping old files */ uiPanelColors panelcolors; @@ -865,7 +859,8 @@ typedef enum eWalkNavigation_Flag { /** #UserDef.uiflag */ typedef enum eUserpref_UI_Flag { - /* flags 0 and 1 were old flags (for autokeying) that aren't used anymore */ + USER_UIFLAG_DEPRECATED_0 = (1 << 0), /* cleared */ + USER_UIFLAG_DEPRECATED_1 = (1 << 1), /* cleared */ USER_WHEELZOOMDIR = (1 << 2), USER_FILTERFILEEXTS = (1 << 3), USER_DRAWVIEWINFO = (1 << 4), @@ -901,7 +896,7 @@ typedef enum eUserpref_UI_Flag { /** #UserDef.uiflag2 */ typedef enum eUserpref_UI_Flag2 { - // USER_FLAG2_DEPRECATED = (1 << 0), /* TODO: clear */ + USER_UIFLAG2_DEPRECATED_0 = (1 << 0), USER_REGION_OVERLAP = (1 << 1), USER_TRACKPAD_NATURAL = (1 << 2), } eUserpref_UI_Flag2; @@ -1005,7 +1000,7 @@ typedef enum eText_Draw_Options { /** Grease Pencil Settings. * #UserDef.gp_settings */ typedef enum eGP_UserdefSettings { - // GP_PAINT_DOSMOOTH = (1 << 0), /* UNUSED */ + GP_PAINT_DEPRECATED_0 = (1 << 0), GP_PAINT_DOSIMPLIFY = (1 << 1), } eGP_UserdefSettings; -- cgit v1.2.3