Cleanup: unused DNA struct members
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Feb 2019 08:12:43 +0000 (19:12 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Feb 2019 08:14:36 +0000 (19:14 +1100)
- Timeline theme.
- 3D view runtime variables.
- Exclude EditLatt from SDNA.

release/datafiles/userdef/userdef_default_theme.c
source/blender/makesdna/DNA_lattice_types.h
source/blender/makesdna/DNA_space_types.h
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesdna/DNA_view3d_types.h

index 9c195fe..b6ab5ff 100644 (file)
@@ -742,11 +742,6 @@ const bTheme U_theme_default = {
                .match = RGBA(0x337f334c),
                .selected_highlight = RGBA(0x314e784c),
        },
-       .ttime = {
-               .vertex_size = 3,
-               .outline_width = 1,
-               .facedot_size = 4,
-       },
        .tnode = {
                .back = RGBA(0x23232300),
                .title = RGBA(0xeeeeeeff),
index dad46db..0794e29 100644 (file)
@@ -32,12 +32,12 @@ struct Ipo;
 struct Key;
 struct MDeformVert;
 
+#
+#
 typedef struct EditLatt {
        struct Lattice *latt;
 
        int shapenr;
-
-       char pad[4];
 } EditLatt;
 
 typedef struct Lattice {
index 24526ed..b571140 100644 (file)
@@ -134,9 +134,8 @@ typedef struct SpaceButs {
        short mainb, mainbo, mainbuser;
        /** Preview is signal to refresh. */
        short preview;
-       short pad[2];
+       char _pad[5];
        char flag;
-       char collection_context;
 
        /** Runtime. */
        void *path;
index b1d4145..cfb52c8 100644 (file)
@@ -434,7 +434,6 @@ typedef struct bTheme {
        ThemeSpace tima;
        ThemeSpace text;
        ThemeSpace toops;
-       ThemeSpace ttime;
        ThemeSpace tnode;
        ThemeSpace tuserpref;
        ThemeSpace tconsole;
index f8d207c..633a9dd 100644 (file)
@@ -243,12 +243,10 @@ typedef struct View3D {
        float bundle_size;
        /** Display style for bundle. */
        char bundle_drawtype;
-       char pad[3];
+       char _pad3[2];
 
-       /** For active layer toggle. */
-       unsigned int lay_prev DNA_DEPRECATED;
-       /** Used while drawing. */
-       unsigned int lay_used DNA_DEPRECATED;
+       /** Multiview current eye - for internal use. */
+       char multiview_eye;
 
        int object_type_exclude_viewport;
        int object_type_exclude_select;
@@ -290,17 +288,8 @@ typedef struct View3D {
        short gridsubdiv;
        char gridflag;
 
-       /* transform gizmo info */
-       char _pad5[2], gizmo_flag;
-
-       short _pad2;
-
-       /* drawflags, denoting state */
-       char _pad3;
-       char transp, xray;
-
-       /** Multiview current eye - for internal use. */
-       char multiview_eye;
+       /** Transform gizmo info. */
+       char gizmo_flag;
 
        /* actually only used to define the opacity of the grease pencil vertex in edit mode */
        float vertex_opacity;