From 847b7bcbeaa95311e9713a4ca77d8e3fbe91b5fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 31 Mar 2014 19:56:00 +1100 Subject: Code cleanup: pack BezTriple a little (though size remains same) --- source/blender/makesdna/DNA_curve_types.h | 8 ++++---- source/blender/makesdna/DNA_userdef_types.h | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h index 2d3a28fbd41..82ec02e01e9 100644 --- a/source/blender/makesdna/DNA_curve_types.h +++ b/source/blender/makesdna/DNA_curve_types.h @@ -109,18 +109,18 @@ typedef struct BezTriple { float vec[3][3]; float alfa, weight, radius; /* alfa: tilt in 3D View, weight: used for softbody goal weight, radius: for bevel tapering */ - short ipo; /* ipo: interpolation mode for segment from this BezTriple to the next */ + char ipo; /* ipo: interpolation mode for segment from this BezTriple to the next */ char h1, h2; /* h1, h2: the handle type of the two handles */ char f1, f2, f3; /* f1, f2, f3: used for selection status */ char hide; /* hide: used to indicate whether BezTriple is hidden (3D), type of keyframe (eBezTriple_KeyframeTypes) */ + char easing; /* easing: easing type for interpolation mode (eBezTriple_Easing) */ float back; /* BEZT_IPO_BACK */ float amplitude, period; /* BEZT_IPO_ELASTIC */ - char easing; /* easing: easing type for interpolation mode (eBezTriple_Easing) */ - - char pad[3]; + + char pad[4]; } BezTriple; /* note; alfa location in struct is abused by Key system */ diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index d584fd5adb0..4f5670d16c1 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -485,8 +485,9 @@ typedef struct UserDef { short glreslimit; short curssize; short color_picker_type; - short ipo_new; /* interpolation mode for newly added F-Curves */ - short keyhandles_new; /* handle types for newly added keyframes */ + char ipo_new; /* interpolation mode for newly added F-Curves */ + char keyhandles_new; /* handle types for newly added keyframes */ + char pad1[2]; short scrcastfps; /* frame rate for screencast to be played back */ short scrcastwait; /* milliseconds between screencast snapshots */ -- cgit v1.2.3