[Bf-blender-cvs] [e9dac3eab83] master: Cleanup: reduce Sequence size by 8 bytes
Campbell Barton
noreply at git.blender.org
Thu Sep 30 09:33:26 CEST 2021
Commit: e9dac3eab839a44af93191dab0467c0fe3ec6d9c
Author: Campbell Barton
Date: Thu Sep 30 17:32:46 2021 +1000
Branches: master
https://developer.blender.org/rBe9dac3eab839a44af93191dab0467c0fe3ec6d9c
Cleanup: reduce Sequence size by 8 bytes
Also use int8_t for color tag.
===================================================================
M source/blender/makesdna/DNA_sequence_types.h
===================================================================
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h
index 828702f9aa8..13bfa82b36d 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -233,18 +233,20 @@ typedef struct Sequence {
float blend_opacity;
/* Tag color showed if `SEQ_TIMELINE_SHOW_STRIP_COLOR_TAG` is set. */
- int16_t color_tag;
- char _pad4[6];
+ int8_t color_tag;
+
+ char alpha_mode;
+ char _pad4[2];
+
+ int cache_flag;
/* is sfra needed anymore? - it looks like its only used in one place */
/** Starting frame according to the timeline of the scene. */
int sfra;
- char alpha_mode;
- char _pad[2];
-
/* Multiview */
char views_format;
+ char _pad[3];
struct Stereo3dFormat *stereo3d_format;
struct IDProperty *prop;
@@ -252,9 +254,6 @@ typedef struct Sequence {
/* modifiers */
ListBase modifiers;
- int cache_flag;
- int _pad2[3];
-
SequenceRuntime runtime;
} Sequence;
More information about the Bf-blender-cvs
mailing list