Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_customdata_types.h
| Show First 20 Lines • Show All 70 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[42]; | int typemap[46]; | ||||
| char _pad0[4]; | char _pad0[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. */ | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | #endif | ||||
| CD_GRID_PAINT_MASK = 35, | CD_GRID_PAINT_MASK = 35, | ||||
| CD_MVERT_SKIN = 36, | CD_MVERT_SKIN = 36, | ||||
| CD_FREESTYLE_EDGE = 37, | CD_FREESTYLE_EDGE = 37, | ||||
| CD_FREESTYLE_FACE = 38, | CD_FREESTYLE_FACE = 38, | ||||
| CD_MLOOPTANGENT = 39, | CD_MLOOPTANGENT = 39, | ||||
| CD_TESSLOOPNORMAL = 40, | CD_TESSLOOPNORMAL = 40, | ||||
| CD_CUSTOMLOOPNORMAL = 41, | CD_CUSTOMLOOPNORMAL = 41, | ||||
| CD_NUMTYPES = 42, | /* Hair and PointCloud */ | ||||
| CD_LOCATION = 42, | |||||
| CD_RADIUS = 43, | |||||
| CD_HAIRCURVE = 44, | |||||
| CD_HAIRMAPPING = 45, | |||||
| CD_NUMTYPES = 46, | |||||
| } 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 38 Lines | |||||
| #define CD_MASK_CUSTOMLOOPNORMAL (1LL << CD_CUSTOMLOOPNORMAL) | #define CD_MASK_CUSTOMLOOPNORMAL (1LL << CD_CUSTOMLOOPNORMAL) | ||||
| /** Data types that may be defined for all mesh elements types. */ | /** Data types that may be defined for all mesh elements types. */ | ||||
| #define CD_MASK_GENERIC_DATA (CD_MASK_PROP_FLT | CD_MASK_PROP_INT | CD_MASK_PROP_STR) | #define CD_MASK_GENERIC_DATA (CD_MASK_PROP_FLT | CD_MASK_PROP_INT | CD_MASK_PROP_STR) | ||||
| /** 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. */ | |||||
| #define CD_MASK_ALL (~0LL) | |||||
| typedef struct CustomData_MeshMasks { | typedef struct CustomData_MeshMasks { | ||||
| uint64_t vmask; | uint64_t vmask; | ||||
| uint64_t emask; | uint64_t emask; | ||||
| uint64_t fmask; | uint64_t fmask; | ||||
| uint64_t pmask; | uint64_t pmask; | ||||
| uint64_t lmask; | uint64_t lmask; | ||||
| } CustomData_MeshMasks; | } CustomData_MeshMasks; | ||||
| Show All 27 Lines | |||||