diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-13 11:12:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-13 11:14:36 +0300 |
commit | b271cbfcb062498532a2bde5ab9fbac03be8f1cd (patch) | |
tree | da258d0918db575c67478481dcdb9ef4733a2015 /source | |
parent | 2424bb3d5ef38702bb738431ab05bd4575374e96 (diff) |
Cleanup: unused DNA struct members
- Timeline theme.
- 3D view runtime variables.
- Exclude EditLatt from SDNA.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/DNA_lattice_types.h | 4 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 3 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 21 |
4 files changed, 8 insertions, 21 deletions
diff --git a/source/blender/makesdna/DNA_lattice_types.h b/source/blender/makesdna/DNA_lattice_types.h index dad46dbe428..0794e297ed1 100644 --- a/source/blender/makesdna/DNA_lattice_types.h +++ b/source/blender/makesdna/DNA_lattice_types.h @@ -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 { diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 24526ed123d..b571140eb94 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -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; diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index b1d4145328b..cfb52c8fa14 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -434,7 +434,6 @@ typedef struct bTheme { ThemeSpace tima; ThemeSpace text; ThemeSpace toops; - ThemeSpace ttime; ThemeSpace tnode; ThemeSpace tuserpref; ThemeSpace tconsole; diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index f8d207cbe34..633a9dd07b5 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -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; |