From e77c65f73ce2ef329d84311795225585ba6c06db Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 24 Jan 2021 13:45:17 +1100 Subject: Cleanup: group navigation gizmo size with generic gizmo size Also use `char` for these gizmo size & flag. --- source/blender/makesdna/DNA_userdef_types.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 114af653e4b..790f3423eef 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -762,8 +762,12 @@ typedef struct UserDef { char _pad13[4]; struct SolidLight light_param[4]; float light_ambient[3]; - char _pad3[4]; - short gizmo_flag, gizmo_size; + char gizmo_flag; + /** Generic gizmo size. */ + char gizmo_size; + /** Navigate gizmo size. */ + char gizmo_size_navigate_v3d; + char _pad3[5]; short edit_studio_light; short lookdev_sphere_size; short vbotimeout, vbocollectrate; @@ -773,9 +777,7 @@ typedef struct UserDef { int prefetchframes; /** Control the rotation step of the view when PAD2, PAD4, PAD6&PAD8 is use. */ float pad_rot_angle; - /** Navigate gizmo size. */ - char gizmo_size_navigate_v3d; - char _pad12[3]; + char _pad12[4]; /** Rotating view icon size. */ short rvisize; /** Rotating view icon brightness. */ -- cgit v1.2.3