Cleanup: Remove unecessary padding from small DNA structs
After {rBa0867f05a48e2017a}, it is no longer necessary to pad structs with 1 and 2 byte sizes. Most of these are geometry node structs, where we've been avoiding using `node.custom1`. I only found two others, the freestyle flags in custom data DNA. Differential Revision: https://developer.blender.org/D10335
This commit is contained in:
parent
53ae2c2a40
commit
d72595a594
Notes:
blender-bot
2023-02-14 11:28:39 +01:00
Referenced by issue #85440, 2.92 Beta - Viewport rendering crash/bugs when changing subdiv modifier when there is another object with a displacement shader node
|
@ -414,7 +414,6 @@ typedef struct OrigSpaceLoop {
|
|||
|
||||
typedef struct FreestyleEdge {
|
||||
char flag;
|
||||
char _pad[3];
|
||||
} FreestyleEdge;
|
||||
|
||||
/** #FreestyleEdge.flag */
|
||||
|
@ -424,7 +423,6 @@ enum {
|
|||
|
||||
typedef struct FreestyleFace {
|
||||
char flag;
|
||||
char _pad[3];
|
||||
} FreestyleFace;
|
||||
|
||||
/** #FreestyleFace.flag */
|
||||
|
|
|
@ -551,7 +551,6 @@ typedef struct bNodeSocketValueFloat {
|
|||
|
||||
typedef struct bNodeSocketValueBoolean {
|
||||
char value;
|
||||
char _pad[3];
|
||||
} bNodeSocketValueBoolean;
|
||||
|
||||
typedef struct bNodeSocketValueVector {
|
||||
|
@ -831,7 +830,6 @@ typedef struct NodeColorspill {
|
|||
|
||||
typedef struct NodeDilateErode {
|
||||
char falloff;
|
||||
char _pad[7];
|
||||
} NodeDilateErode;
|
||||
|
||||
typedef struct NodeMask {
|
||||
|
@ -840,7 +838,6 @@ typedef struct NodeMask {
|
|||
|
||||
typedef struct NodeSetAlpha {
|
||||
char mode;
|
||||
char _pad[7];
|
||||
} NodeSetAlpha;
|
||||
|
||||
typedef struct NodeTexBase {
|
||||
|
@ -997,7 +994,6 @@ typedef struct NodeTrackPosData {
|
|||
typedef struct NodeTranslateData {
|
||||
char wrap_axis;
|
||||
char relative;
|
||||
char _pad[6];
|
||||
} NodeTranslateData;
|
||||
|
||||
typedef struct NodePlaneTrackDeformData {
|
||||
|
@ -1076,7 +1072,6 @@ typedef struct NodeCryptomatte {
|
|||
|
||||
typedef struct NodeDenoise {
|
||||
char hdr;
|
||||
char _pad[7];
|
||||
} NodeDenoise;
|
||||
|
||||
typedef struct NodeAttributeCompare {
|
||||
|
@ -1098,8 +1093,6 @@ typedef struct NodeAttributeMath {
|
|||
uint8_t input_type_a;
|
||||
uint8_t input_type_b;
|
||||
uint8_t input_type_c;
|
||||
|
||||
char _pad[4];
|
||||
} NodeAttributeMath;
|
||||
|
||||
typedef struct NodeAttributeMix {
|
||||
|
@ -1120,8 +1113,6 @@ typedef struct NodeAttributeVectorMath {
|
|||
uint8_t input_type_a;
|
||||
uint8_t input_type_b;
|
||||
uint8_t input_type_c;
|
||||
|
||||
char _pad[4];
|
||||
} NodeAttributeVectorMath;
|
||||
|
||||
typedef struct NodeAttributeColorRamp {
|
||||
|
@ -1159,22 +1150,16 @@ typedef struct NodeGeometryAlignRotationToVector {
|
|||
typedef struct NodeGeometryPointScale {
|
||||
/* GeometryNodeAttributeInputMode */
|
||||
uint8_t input_type;
|
||||
|
||||
char _pad[7];
|
||||
} NodeGeometryPointScale;
|
||||
|
||||
typedef struct NodeGeometryPointTranslate {
|
||||
/* GeometryNodeAttributeInputMode */
|
||||
uint8_t input_type;
|
||||
|
||||
char _pad[7];
|
||||
} NodeGeometryPointTranslate;
|
||||
|
||||
typedef struct NodeGeometryObjectInfo {
|
||||
/* GeometryNodeTransformSpace. */
|
||||
uint8_t transform_space;
|
||||
|
||||
char _pad[7];
|
||||
} NodeGeometryObjectInfo;
|
||||
|
||||
typedef struct NodeGeometryPointInstance {
|
||||
|
@ -1182,8 +1167,6 @@ typedef struct NodeGeometryPointInstance {
|
|||
uint8_t instance_type;
|
||||
/* GeometryNodePointInstanceFlag. */
|
||||
uint8_t flag;
|
||||
|
||||
char _pad[6];
|
||||
} NodeGeometryPointInstance;
|
||||
|
||||
typedef struct NodeGeometryPointsToVolume {
|
||||
|
@ -1191,29 +1174,21 @@ typedef struct NodeGeometryPointsToVolume {
|
|||
uint8_t resolution_mode;
|
||||
/* GeometryNodeAttributeInputMode */
|
||||
uint8_t input_type_radius;
|
||||
|
||||
char _pad[6];
|
||||
} NodeGeometryPointsToVolume;
|
||||
|
||||
typedef struct NodeGeometryCollectionInfo {
|
||||
/* GeometryNodeTransformSpace. */
|
||||
uint8_t transform_space;
|
||||
|
||||
char _pad[7];
|
||||
} NodeGeometryCollectionInfo;
|
||||
|
||||
typedef struct NodeGeometryAttributeProximity {
|
||||
/* GeometryNodeAttributeProximityTargetGeometryElement. */
|
||||
uint8_t target_geometry_element;
|
||||
|
||||
char _pad[7];
|
||||
} NodeGeometryAttributeProximity;
|
||||
|
||||
typedef struct NodeGeometryVolumeToMesh {
|
||||
/* VolumeToMeshResolutionMode */
|
||||
uint8_t resolution_mode;
|
||||
|
||||
char _pad[7];
|
||||
} NodeGeometryVolumeToMesh;
|
||||
|
||||
typedef struct NodeAttributeCombineXYZ {
|
||||
|
|
Loading…
Reference in New Issue