Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_mesh_types.h
| Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | typedef struct Mesh { | ||||
| char subdiv DNA_DEPRECATED, subdivr DNA_DEPRECATED; | char subdiv DNA_DEPRECATED, subdivr DNA_DEPRECATED; | ||||
| /** Only kept for backwards compat, not used anymore. */ | /** Only kept for backwards compat, not used anymore. */ | ||||
| char subsurftype DNA_DEPRECATED; | char subsurftype DNA_DEPRECATED; | ||||
| char editflag; | char editflag; | ||||
| short totcol; | short totcol; | ||||
| float voxel_size; | |||||
brecht: This should be initialized to a reasonable default for existing meshes in `versioning_280.c`… | |||||
Done Inline ActionsRename this to remesh_voxel_size in DNA too. brecht: Rename this to `remesh_voxel_size` in DNA too. | |||||
| char _pad1[4]; | |||||
| /** Deprecated multiresolution modeling data, only keep for loading old files. */ | /** Deprecated multiresolution modeling data, only keep for loading old files. */ | ||||
| struct Multires *mr DNA_DEPRECATED; | struct Multires *mr DNA_DEPRECATED; | ||||
| void *_pad1; | |||||
| Mesh_Runtime runtime; | Mesh_Runtime runtime; | ||||
| } Mesh; | } Mesh; | ||||
| /* deprecated by MTFace, only here for file reading */ | /* deprecated by MTFace, only here for file reading */ | ||||
| #ifdef DNA_DEPRECATED | #ifdef DNA_DEPRECATED | ||||
| typedef struct TFace { | typedef struct TFace { | ||||
| /** The faces image for the active UVLayer. */ | /** The faces image for the active UVLayer. */ | ||||
| Show All 38 Lines | enum { | ||||
| ME_FLAG_UNUSED_3 = 1 << 3, /* cleared */ | ME_FLAG_UNUSED_3 = 1 << 3, /* cleared */ | ||||
| ME_FLAG_UNUSED_4 = 1 << 4, /* cleared */ | ME_FLAG_UNUSED_4 = 1 << 4, /* cleared */ | ||||
| ME_AUTOSMOOTH = 1 << 5, | ME_AUTOSMOOTH = 1 << 5, | ||||
| ME_FLAG_UNUSED_6 = 1 << 6, /* cleared */ | ME_FLAG_UNUSED_6 = 1 << 6, /* cleared */ | ||||
| ME_FLAG_UNUSED_7 = 1 << 7, /* cleared */ | ME_FLAG_UNUSED_7 = 1 << 7, /* cleared */ | ||||
| ME_FLAG_UNUSED_8 = 1 << 8, /* cleared */ | ME_FLAG_UNUSED_8 = 1 << 8, /* cleared */ | ||||
| ME_DS_EXPAND = 1 << 9, | ME_DS_EXPAND = 1 << 9, | ||||
| ME_SCULPT_DYNAMIC_TOPOLOGY = 1 << 10, | ME_SCULPT_DYNAMIC_TOPOLOGY = 1 << 10, | ||||
| ME_REMESH_SMOOTH_NORMALS = 1 << 11, | |||||
| ME_REMESH_REPROJECT_PAINT_MASK = 1 << 12, | |||||
| }; | }; | ||||
| /* me->cd_flag */ | /* me->cd_flag */ | ||||
| enum { | enum { | ||||
| ME_CDFLAG_VERT_BWEIGHT = 1 << 0, | ME_CDFLAG_VERT_BWEIGHT = 1 << 0, | ||||
| ME_CDFLAG_EDGE_BWEIGHT = 1 << 1, | ME_CDFLAG_EDGE_BWEIGHT = 1 << 1, | ||||
| ME_CDFLAG_EDGE_CREASE = 1 << 2, | ME_CDFLAG_EDGE_CREASE = 1 << 2, | ||||
| }; | }; | ||||
| Show All 16 Lines | |||||
This should be initialized to a reasonable default for existing meshes in versioning_280.c and new meshes in mesh.c.