Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_customdata_types.h
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
| typedef struct CustomData { | typedef struct CustomData { | ||||
| /** CustomDataLayers, ordered by type. */ | /** CustomDataLayers, ordered by type. */ | ||||
| CustomDataLayer *layers; | CustomDataLayer *layers; | ||||
| /** | /** | ||||
| * runtime only! - maps types to indices of first layer of that type, | * runtime only! - maps types to indices of first layer of that type, | ||||
| * MUST be >= CD_NUMTYPES, but we cant use a define here. | * MUST be >= CD_NUMTYPES, but we cant use a define here. | ||||
| * Correct size is ensured in CustomData_update_typemap assert(). | * Correct size is ensured in CustomData_update_typemap assert(). | ||||
| */ | */ | ||||
| int typemap[50]; | int typemap[51]; | ||||
| char _pad[4]; | |||||
| /** Number of layers, size of layers array. */ | /** Number of layers, size of layers array. */ | ||||
| int totlayer, maxlayer; | int totlayer, maxlayer; | ||||
| /** In editmode, total size of all data layers. */ | /** In editmode, total size of all data layers. */ | ||||
| int totsize; | int totsize; | ||||
| /** (BMesh Only): Memory pool for allocation of blocks. */ | /** (BMesh Only): Memory pool for allocation of blocks. */ | ||||
| struct BLI_mempool *pool; | struct BLI_mempool *pool; | ||||
| /** External file storing customdata layers. */ | /** External file storing customdata layers. */ | ||||
| CustomDataExternal *external; | CustomDataExternal *external; | ||||
| ▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | #endif | ||||
| /* CD_RADIUS = 44, */ /* UNUSED */ | /* CD_RADIUS = 44, */ /* UNUSED */ | ||||
| CD_HAIRCURVE = 45, | CD_HAIRCURVE = 45, | ||||
| CD_HAIRMAPPING = 46, | CD_HAIRMAPPING = 46, | ||||
| CD_PROP_COLOR = 47, | CD_PROP_COLOR = 47, | ||||
| CD_PROP_FLOAT3 = 48, | CD_PROP_FLOAT3 = 48, | ||||
| CD_PROP_FLOAT2 = 49, | CD_PROP_FLOAT2 = 49, | ||||
| CD_NUMTYPES = 50, | CD_PROP_BOOL = 50, | ||||
| CD_NUMTYPES = 51, | |||||
| } CustomDataType; | } CustomDataType; | ||||
| /* Bits for CustomDataMask */ | /* Bits for CustomDataMask */ | ||||
| #define CD_MASK_MVERT (1 << CD_MVERT) | #define CD_MASK_MVERT (1 << CD_MVERT) | ||||
| // #define CD_MASK_MSTICKY (1 << CD_MSTICKY) /* DEPRECATED */ | // #define CD_MASK_MSTICKY (1 << CD_MSTICKY) /* DEPRECATED */ | ||||
| #define CD_MASK_MDEFORMVERT (1 << CD_MDEFORMVERT) | #define CD_MASK_MDEFORMVERT (1 << CD_MDEFORMVERT) | ||||
| #define CD_MASK_MEDGE (1 << CD_MEDGE) | #define CD_MASK_MEDGE (1 << CD_MEDGE) | ||||
| #define CD_MASK_MFACE (1 << CD_MFACE) | #define CD_MASK_MFACE (1 << CD_MFACE) | ||||
| Show All 35 Lines | |||||
| #define CD_MASK_FREESTYLE_FACE (1LL << CD_FREESTYLE_FACE) | #define CD_MASK_FREESTYLE_FACE (1LL << CD_FREESTYLE_FACE) | ||||
| #define CD_MASK_MLOOPTANGENT (1LL << CD_MLOOPTANGENT) | #define CD_MASK_MLOOPTANGENT (1LL << CD_MLOOPTANGENT) | ||||
| #define CD_MASK_TESSLOOPNORMAL (1LL << CD_TESSLOOPNORMAL) | #define CD_MASK_TESSLOOPNORMAL (1LL << CD_TESSLOOPNORMAL) | ||||
| #define CD_MASK_CUSTOMLOOPNORMAL (1LL << CD_CUSTOMLOOPNORMAL) | #define CD_MASK_CUSTOMLOOPNORMAL (1LL << CD_CUSTOMLOOPNORMAL) | ||||
| #define CD_MASK_SCULPT_FACE_SETS (1LL << CD_SCULPT_FACE_SETS) | #define CD_MASK_SCULPT_FACE_SETS (1LL << CD_SCULPT_FACE_SETS) | ||||
| #define CD_MASK_PROP_COLOR (1ULL << CD_PROP_COLOR) | #define CD_MASK_PROP_COLOR (1ULL << CD_PROP_COLOR) | ||||
| #define CD_MASK_PROP_FLOAT3 (1ULL << CD_PROP_FLOAT3) | #define CD_MASK_PROP_FLOAT3 (1ULL << CD_PROP_FLOAT3) | ||||
| #define CD_MASK_PROP_FLOAT2 (1ULL << CD_PROP_FLOAT2) | #define CD_MASK_PROP_FLOAT2 (1ULL << CD_PROP_FLOAT2) | ||||
| #define CD_MASK_PROP_BOOL (1ULL << CD_PROP_BOOL) | |||||
| /** Multires loop data. */ | /** Multires loop data. */ | ||||
| #define CD_MASK_MULTIRES_GRIDS (CD_MASK_MDISPS | CD_GRID_PAINT_MASK) | #define CD_MASK_MULTIRES_GRIDS (CD_MASK_MDISPS | CD_GRID_PAINT_MASK) | ||||
| /* All data layers. */ | /* All data layers. */ | ||||
| #define CD_MASK_ALL (~0LL) | #define CD_MASK_ALL (~0LL) | ||||
| /* All generic attributes. */ | /* All generic attributes. */ | ||||
| Show All 37 Lines | |||||