Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_curves_types.h
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | typedef struct Curves { | ||||
| int flag; | int flag; | ||||
| int attributes_active_index; | int attributes_active_index; | ||||
| /* Materials. */ | /* Materials. */ | ||||
| struct Material **mat; | struct Material **mat; | ||||
| short totcol; | short totcol; | ||||
| short _pad2[3]; | short _pad2[3]; | ||||
| /** | |||||
| * Used as base mesh when curves represent e.g. hair or fur. This surface is used in edit modes. | |||||
| * When set, the curves will have attributes that indicate a position on this surface. This is | |||||
| * used for deforming the curves when the surface is deformed dynamically. | |||||
| * | |||||
| * This is expected to be a mesh object. | |||||
| */ | |||||
| struct Object *surface; | |||||
| /* Draw Cache. */ | /* Draw Cache. */ | ||||
| void *batch_cache; | void *batch_cache; | ||||
| } Curves; | } Curves; | ||||
| /* Curves.flag */ | /* Curves.flag */ | ||||
| enum { | enum { | ||||
| HA_DS_EXPAND = (1 << 0), | HA_DS_EXPAND = (1 << 0), | ||||
| }; | }; | ||||
| /* Only one material supported currently. */ | /* Only one material supported currently. */ | ||||
| #define CURVES_MATERIAL_NR 1 | #define CURVES_MATERIAL_NR 1 | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||