Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_modifier_types.h
| Show First 20 Lines • Show All 2,138 Lines • ▼ Show 20 Lines | |||||
| /* NormalEditModifierData.mix_mode */ | /* NormalEditModifierData.mix_mode */ | ||||
| enum { | enum { | ||||
| MOD_NORMALEDIT_MIX_COPY = 0, | MOD_NORMALEDIT_MIX_COPY = 0, | ||||
| MOD_NORMALEDIT_MIX_ADD = 1, | MOD_NORMALEDIT_MIX_ADD = 1, | ||||
| MOD_NORMALEDIT_MIX_SUB = 2, | MOD_NORMALEDIT_MIX_SUB = 2, | ||||
| MOD_NORMALEDIT_MIX_MUL = 3, | MOD_NORMALEDIT_MIX_MUL = 3, | ||||
| }; | }; | ||||
| typedef struct MeshCacheVertexVelocity { | |||||
| float vel[3]; | |||||
| } MeshCacheVertexVelocity; | |||||
| typedef struct MeshSeqCacheModifierData { | typedef struct MeshSeqCacheModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| struct CacheFile *cache_file; | struct CacheFile *cache_file; | ||||
| /** 1024 = FILE_MAX. */ | /** 1024 = FILE_MAX. */ | ||||
| char object_path[1024]; | char object_path[1024]; | ||||
| char read_flag; | char read_flag; | ||||
| char _pad[3]; | char _pad[3]; | ||||
| float velocity_scale; | float velocity_scale; | ||||
| /* Runtime. */ | /* Runtime. */ | ||||
| struct CacheReader *reader; | struct CacheReader *reader; | ||||
| char reader_object_path[1024]; | char reader_object_path[1024]; | ||||
| /* Vertex velocities read from the cache. The velocities are not automatically read during | |||||
| * modifier execution, and therefore have to manually be read when needed. This is only used | |||||
| * through the RNA for now. */ | |||||
| struct MeshCacheVertexVelocity *vertex_velocities; | |||||
| /* The number of vertices of the Alembic mesh, set when the modifier is executed. */ | |||||
| int num_vertices; | |||||
| /* Time (in frames or seconds) between two velocity samples. Automatically computed to | |||||
| * scale the velocity vectors at render time for generating proper motion blur data. */ | |||||
| float velocity_delta; | |||||
| /* Caches the scene time (in seconds) used to lookup data in the Alembic archive when the | |||||
| * modifier was last executed. Used to access Alembic samples through the RNA. */ | |||||
| float last_lookup_time; | |||||
| int _pad1; | |||||
| void *_pad2; | |||||
| } MeshSeqCacheModifierData; | } MeshSeqCacheModifierData; | ||||
| /* MeshSeqCacheModifierData.read_flag */ | /* MeshSeqCacheModifierData.read_flag */ | ||||
| enum { | enum { | ||||
| MOD_MESHSEQ_READ_VERT = (1 << 0), | MOD_MESHSEQ_READ_VERT = (1 << 0), | ||||
| MOD_MESHSEQ_READ_POLY = (1 << 1), | MOD_MESHSEQ_READ_POLY = (1 << 1), | ||||
| MOD_MESHSEQ_READ_UV = (1 << 2), | MOD_MESHSEQ_READ_UV = (1 << 2), | ||||
| MOD_MESHSEQ_READ_COLOR = (1 << 3), | MOD_MESHSEQ_READ_COLOR = (1 << 3), | ||||
| ▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines | |||||