Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_object_types.h
| Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | typedef struct Object_Runtime { | ||||
| struct Mesh *mesh_eval; | struct Mesh *mesh_eval; | ||||
| /** | /** | ||||
| * Mesh structure created during object evaluation. | * Mesh structure created during object evaluation. | ||||
| * It has deformation only modifiers applied on it. | * It has deformation only modifiers applied on it. | ||||
| */ | */ | ||||
| struct Mesh *mesh_deform_eval; | struct Mesh *mesh_deform_eval; | ||||
| /** | /** | ||||
| * Original grease pencil bGPdata pointer, before object->data was changed to point | |||||
| * to gpd_eval. | |||||
| * Is assigned by dependency graph's copy-on-write evaluation. | |||||
| */ | |||||
| struct bGPdata *gpd_orig; | |||||
| /** | |||||
| * bGPdata structure created during object evaluation. | |||||
| * It has all modifiers applied. | |||||
| */ | |||||
| struct bGPdata *gpd_eval; | |||||
| /** | |||||
| * This is a mesh representation of corresponding object. | * This is a mesh representation of corresponding object. | ||||
| * It created when Python calls `object.to_mesh()`. | * It created when Python calls `object.to_mesh()`. | ||||
| */ | */ | ||||
| struct Mesh *object_as_temp_mesh; | struct Mesh *object_as_temp_mesh; | ||||
| /** Runtime evaluated curve-specific data, not stored in the file. */ | /** Runtime evaluated curve-specific data, not stored in the file. */ | ||||
| struct CurveCache *curve_cache; | struct CurveCache *curve_cache; | ||||
| /** Runtime grease pencil drawing data */ | |||||
| struct GpencilBatchCache *gpencil_cache; | |||||
| /** Runtime grease pencil total layers used for evaluated data created by modifiers */ | |||||
| int gpencil_tot_layers; | |||||
| char _pad4[4]; | |||||
| /** Runtime grease pencil evaluated data created by modifiers */ | |||||
| struct bGPDframe *gpencil_evaluated_frames; | |||||
| unsigned short local_collections_bits; | unsigned short local_collections_bits; | ||||
| short _pad2[3]; | short _pad2[3]; | ||||
| } Object_Runtime; | } Object_Runtime; | ||||
| typedef struct Object { | typedef struct Object { | ||||
| ID id; | ID id; | ||||
| /** Animation data (must be immediately after id for utilities to use it). */ | /** Animation data (must be immediately after id for utilities to use it). */ | ||||
| struct AnimData *adt; | struct AnimData *adt; | ||||
| ▲ Show 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | enum { | ||||
| /* for solid+wire display */ | /* for solid+wire display */ | ||||
| OB_DRAWWIRE = 1 << 5, | OB_DRAWWIRE = 1 << 5, | ||||
| /* for overdraw s*/ | /* for overdraw s*/ | ||||
| OB_DRAWXRAY = 1 << 6, | OB_DRAWXRAY = 1 << 6, | ||||
| /* enable transparent draw */ | /* enable transparent draw */ | ||||
| OB_DRAWTRANSP = 1 << 7, | OB_DRAWTRANSP = 1 << 7, | ||||
| OB_DRAW_ALL_EDGES = 1 << 8, /* only for meshes currently */ | OB_DRAW_ALL_EDGES = 1 << 8, /* only for meshes currently */ | ||||
| OB_DRAW_NO_SHADOW_CAST = 1 << 9, | OB_DRAW_NO_SHADOW_CAST = 1 << 9, | ||||
| /* Enable lights for grease pencil. */ | |||||
| OB_USE_GPENCIL_LIGHTS = 1 << 10, | |||||
| }; | }; | ||||
| /* empty_drawtype: no flags */ | /* empty_drawtype: no flags */ | ||||
| enum { | enum { | ||||
| OB_ARROWS = 1, | OB_ARROWS = 1, | ||||
| OB_PLAINAXES = 2, | OB_PLAINAXES = 2, | ||||
| OB_CIRCLE = 3, | OB_CIRCLE = 3, | ||||
| OB_SINGLE_ARROW = 4, | OB_SINGLE_ARROW = 4, | ||||
| ▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines | |||||