diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-23 13:58:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-23 13:58:24 +0300 |
commit | 74ebbafb3ebdaec81c261d4c196923b8ebd9d7ed (patch) | |
tree | a95c464476d7d4edccc2be0760d0a05dde397434 | |
parent | cb817d9f38be052d67fc9393c1bba1ead8338194 (diff) |
DNA: reduce Object size by 16 bytes
No need to use int for boolean value.
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index 66e01cae37b..13b7a0a7600 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -139,7 +139,13 @@ typedef struct Object_Runtime { /** Selection id of this object; only available in the original object */ int select_id; - char _pad1[4]; + char _pad1[3]; + + /** + * Denotes whether the evaluated mesh is owned by this object or is referenced and owned by + * somebody else. + */ + char is_mesh_eval_owned; /** Axis aligned boundbox (in localspace). */ struct BoundBox *bb; @@ -156,12 +162,6 @@ typedef struct Object_Runtime { */ struct Mesh *mesh_eval; /** - * Denotes whether the evaluated mesh is owned by this object or is referenced and owned by - * somebody else. - */ - int is_mesh_eval_owned; - int _pad3[3]; - /** * Mesh structure created during object evaluation. * It has deforemation only modifiers applied on it. */ |