Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_modifier_types.h
| Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | typedef struct ModifierData { | ||||
| /* Pointer to a ModifierData in the original domain. */ | /* Pointer to a ModifierData in the original domain. */ | ||||
| struct ModifierData *orig_modifier_data; | struct ModifierData *orig_modifier_data; | ||||
| /* Runtime field which contains unique identifier of the modifier. */ | /* Runtime field which contains unique identifier of the modifier. */ | ||||
| SessionUUID session_uuid; | SessionUUID session_uuid; | ||||
| /* Runtime field which contains runtime data which is specific to a modifier type. */ | /* Runtime field which contains runtime data which is specific to a modifier type. */ | ||||
| void *runtime; | void *runtime; | ||||
| void *_pad1; | |||||
| } ModifierData; | } ModifierData; | ||||
| typedef enum { | typedef enum { | ||||
| /* This modifier has been inserted in local override, and hence can be fully edited. */ | /* This modifier has been inserted in local override, and hence can be fully edited. */ | ||||
| eModifierFlag_OverrideLibrary_Local = (1 << 0), | eModifierFlag_OverrideLibrary_Local = (1 << 0), | ||||
| /* This modifier does not own its caches, but instead shares them with another modifier. */ | /* This modifier does not own its caches, but instead shares them with another modifier. */ | ||||
| eModifierFlag_SharedCaches = (1 << 1), | eModifierFlag_SharedCaches = (1 << 1), | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | typedef struct LatticeModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | ||||
| char name[64]; | char name[64]; | ||||
| float strength; | float strength; | ||||
| short flag; | short flag; | ||||
| char _pad[2]; | char _pad[2]; | ||||
| void *_pad1; | |||||
| } LatticeModifierData; | } LatticeModifierData; | ||||
| /*Lattice modifier flags */ | /*Lattice modifier flags */ | ||||
| enum { | enum { | ||||
| MOD_LATTICE_INVERT_VGROUP = (1 << 0), | MOD_LATTICE_INVERT_VGROUP = (1 << 0), | ||||
| }; | }; | ||||
| typedef struct CurveModifierData { | typedef struct CurveModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| struct Object *object; | struct Object *object; | ||||
| /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | ||||
| char name[64]; | char name[64]; | ||||
| /** Axis along which curve deforms. */ | /** Axis along which curve deforms. */ | ||||
| short defaxis; | short defaxis; | ||||
| short flag; | short flag; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| void *_pad1; | |||||
| } CurveModifierData; | } CurveModifierData; | ||||
| /* Curve modifier flags */ | /* Curve modifier flags */ | ||||
| enum { | enum { | ||||
| MOD_CURVE_INVERT_VGROUP = (1 << 0), | MOD_CURVE_INVERT_VGROUP = (1 << 0), | ||||
| }; | }; | ||||
| /* CurveModifierData->defaxis */ | /* CurveModifierData->defaxis */ | ||||
| Show All 35 Lines | typedef struct MaskModifierData { | ||||
| /** Name of vertex group to use to mask, MAX_VGROUP_NAME. */ | /** Name of vertex group to use to mask, MAX_VGROUP_NAME. */ | ||||
| char vgroup[64]; | char vgroup[64]; | ||||
| /** Using armature or hardcoded vgroup. */ | /** Using armature or hardcoded vgroup. */ | ||||
| short mode; | short mode; | ||||
| /** Flags for various things. */ | /** Flags for various things. */ | ||||
| short flag; | short flag; | ||||
| float threshold; | float threshold; | ||||
| void *_pad1; | |||||
| } MaskModifierData; | } MaskModifierData; | ||||
| /* Mask Modifier -> mode */ | /* Mask Modifier -> mode */ | ||||
| enum { | enum { | ||||
| MOD_MASK_MODE_VGROUP = 0, | MOD_MASK_MODE_VGROUP = 0, | ||||
| MOD_MASK_MODE_ARM = 1, | MOD_MASK_MODE_ARM = 1, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | typedef struct MirrorModifierData { | ||||
| short axis DNA_DEPRECATED; | short axis DNA_DEPRECATED; | ||||
| short flag; | short flag; | ||||
| float tolerance; | float tolerance; | ||||
| float bisect_threshold; | float bisect_threshold; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| float uv_offset[2]; | float uv_offset[2]; | ||||
| float uv_offset_copy[2]; | float uv_offset_copy[2]; | ||||
| struct Object *mirror_ob; | struct Object *mirror_ob; | ||||
| void *_pad1; | |||||
| } MirrorModifierData; | } MirrorModifierData; | ||||
| /* MirrorModifierData->flag */ | /* MirrorModifierData->flag */ | ||||
| enum { | enum { | ||||
| MOD_MIR_CLIPPING = (1 << 0), | MOD_MIR_CLIPPING = (1 << 0), | ||||
| MOD_MIR_MIRROR_U = (1 << 1), | MOD_MIR_MIRROR_U = (1 << 1), | ||||
| MOD_MIR_MIRROR_V = (1 << 2), | MOD_MIR_MIRROR_V = (1 << 2), | ||||
| MOD_MIR_AXIS_X = (1 << 3), | MOD_MIR_AXIS_X = (1 << 3), | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | typedef struct BevelModifierData { | ||||
| /** if the MOD_BEVEL_VWEIGHT option is set, | /** if the MOD_BEVEL_VWEIGHT option is set, | ||||
| * this will be the name of the vert group, MAX_VGROUP_NAME */ | * this will be the name of the vert group, MAX_VGROUP_NAME */ | ||||
| char defgrp_name[64]; | char defgrp_name[64]; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| /** Curve info for the custom profile */ | /** Curve info for the custom profile */ | ||||
| struct CurveProfile *custom_profile; | struct CurveProfile *custom_profile; | ||||
| void *_pad2; | |||||
| } BevelModifierData; | } BevelModifierData; | ||||
| /* BevelModifierData->flags and BevelModifierData->lim_flags */ | /* BevelModifierData->flags and BevelModifierData->lim_flags */ | ||||
| enum { | enum { | ||||
| #ifdef DNA_DEPRECATED_ALLOW | #ifdef DNA_DEPRECATED_ALLOW | ||||
| MOD_BEVEL_VERT_DEPRECATED = (1 << 1), | MOD_BEVEL_VERT_DEPRECATED = (1 << 1), | ||||
| #endif | #endif | ||||
| MOD_BEVEL_INVERT_VGROUP = (1 << 2), | MOD_BEVEL_INVERT_VGROUP = (1 << 2), | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | typedef struct FluidModifierData { | ||||
| struct FluidDomainSettings *domain; | struct FluidDomainSettings *domain; | ||||
| /** Inflow, outflow, smoke objects. */ | /** Inflow, outflow, smoke objects. */ | ||||
| struct FluidFlowSettings *flow; | struct FluidFlowSettings *flow; | ||||
| /** Effector objects (collision, guiding). */ | /** Effector objects (collision, guiding). */ | ||||
| struct FluidEffectorSettings *effector; | struct FluidEffectorSettings *effector; | ||||
| float time; | float time; | ||||
| /** Domain, inflow, outflow, .... */ | /** Domain, inflow, outflow, .... */ | ||||
| int type; | int type; | ||||
| void *_pad1; | |||||
| } FluidModifierData; | } FluidModifierData; | ||||
| /* Fluid modifier flags */ | /* Fluid modifier flags */ | ||||
| enum { | enum { | ||||
| MOD_FLUID_TYPE_DOMAIN = (1 << 0), | MOD_FLUID_TYPE_DOMAIN = (1 << 0), | ||||
| MOD_FLUID_TYPE_FLOW = (1 << 1), | MOD_FLUID_TYPE_FLOW = (1 << 1), | ||||
| MOD_FLUID_TYPE_EFFEC = (1 << 2), | MOD_FLUID_TYPE_EFFEC = (1 << 2), | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | typedef struct CastModifierData { | ||||
| struct Object *object; | struct Object *object; | ||||
| float fac; | float fac; | ||||
| float radius; | float radius; | ||||
| float size; | float size; | ||||
| /** MAX_VGROUP_NAME. */ | /** MAX_VGROUP_NAME. */ | ||||
| char defgrp_name[64]; | char defgrp_name[64]; | ||||
| short flag, type; | short flag, type; | ||||
| void *_pad1; | |||||
| } CastModifierData; | } CastModifierData; | ||||
| /* Cast modifier flags */ | /* Cast modifier flags */ | ||||
| enum { | enum { | ||||
| /* And what bout (1 << 0) flag? ;) */ | /* And what bout (1 << 0) flag? ;) */ | ||||
| MOD_CAST_INVERT_VGROUP = (1 << 0), | MOD_CAST_INVERT_VGROUP = (1 << 0), | ||||
| MOD_CAST_X = (1 << 1), | MOD_CAST_X = (1 << 1), | ||||
| MOD_CAST_Y = (1 << 2), | MOD_CAST_Y = (1 << 2), | ||||
| Show All 29 Lines | typedef struct WaveModifierData { | ||||
| short flag; | short flag; | ||||
| char _pad[2]; | char _pad[2]; | ||||
| float startx, starty, height, width; | float startx, starty, height, width; | ||||
| float narrow, speed, damp, falloff; | float narrow, speed, damp, falloff; | ||||
| float timeoffs, lifetime; | float timeoffs, lifetime; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| void *_pad2; | |||||
| } WaveModifierData; | } WaveModifierData; | ||||
| /* WaveModifierData.flag */ | /* WaveModifierData.flag */ | ||||
| enum { | enum { | ||||
| MOD_WAVE_INVERT_VGROUP = (1 << 0), | MOD_WAVE_INVERT_VGROUP = (1 << 0), | ||||
| MOD_WAVE_X = (1 << 1), | MOD_WAVE_X = (1 << 1), | ||||
| MOD_WAVE_Y = (1 << 2), | MOD_WAVE_Y = (1 << 2), | ||||
| MOD_WAVE_CYCL = (1 << 3), | MOD_WAVE_CYCL = (1 << 3), | ||||
| ▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | typedef struct HookModifierData { | ||||
| struct CurveMapping *curfalloff; | struct CurveMapping *curfalloff; | ||||
| /** If NULL, it's using vertexgroup. */ | /** If NULL, it's using vertexgroup. */ | ||||
| int *indexar; | int *indexar; | ||||
| int totindex; | int totindex; | ||||
| float force; | float force; | ||||
| /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | ||||
| char name[64]; | char name[64]; | ||||
| void *_pad1; | |||||
| } HookModifierData; | } HookModifierData; | ||||
| typedef struct SoftbodyModifierData { | typedef struct SoftbodyModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| } SoftbodyModifierData; | } SoftbodyModifierData; | ||||
| typedef struct ClothModifierData { | typedef struct ClothModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| ▲ Show 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | typedef struct ParticleSystemModifierData { | ||||
| struct ParticleSystem *psys; | struct ParticleSystem *psys; | ||||
| /** Final Mesh - its topology may differ from orig mesh. */ | /** Final Mesh - its topology may differ from orig mesh. */ | ||||
| struct Mesh *mesh_final; | struct Mesh *mesh_final; | ||||
| /** Original mesh that particles are attached to. */ | /** Original mesh that particles are attached to. */ | ||||
| struct Mesh *mesh_original; | struct Mesh *mesh_original; | ||||
| int totdmvert, totdmedge, totdmface; | int totdmvert, totdmedge, totdmface; | ||||
| short flag; | short flag; | ||||
| char _pad[2]; | char _pad[2]; | ||||
| void *_pad1; | |||||
| } ParticleSystemModifierData; | } ParticleSystemModifierData; | ||||
| typedef enum { | typedef enum { | ||||
| eParticleSystemFlag_Pars = (1 << 0), | eParticleSystemFlag_Pars = (1 << 0), | ||||
| eParticleSystemFlag_psys_updated = (1 << 1), | eParticleSystemFlag_psys_updated = (1 << 1), | ||||
| eParticleSystemFlag_file_loaded = (1 << 2), | eParticleSystemFlag_file_loaded = (1 << 2), | ||||
| } ParticleSystemModifierFlag; | } ParticleSystemModifierFlag; | ||||
| Show All 20 Lines | typedef struct ParticleInstanceModifierData { | ||||
| short psys, flag, axis, space; | short psys, flag, axis, space; | ||||
| float position, random_position; | float position, random_position; | ||||
| float rotation, random_rotation; | float rotation, random_rotation; | ||||
| float particle_amount, particle_offset; | float particle_amount, particle_offset; | ||||
| /** MAX_CUSTOMDATA_LAYER_NAME. */ | /** MAX_CUSTOMDATA_LAYER_NAME. */ | ||||
| char index_layer_name[64]; | char index_layer_name[64]; | ||||
| /** MAX_CUSTOMDATA_LAYER_NAME. */ | /** MAX_CUSTOMDATA_LAYER_NAME. */ | ||||
| char value_layer_name[64]; | char value_layer_name[64]; | ||||
| void *_pad1; | |||||
| } ParticleInstanceModifierData; | } ParticleInstanceModifierData; | ||||
| typedef enum { | typedef enum { | ||||
| eExplodeFlag_CalcFaces = (1 << 0), | eExplodeFlag_CalcFaces = (1 << 0), | ||||
| eExplodeFlag_PaSize = (1 << 1), | eExplodeFlag_PaSize = (1 << 1), | ||||
| eExplodeFlag_EdgeCut = (1 << 2), | eExplodeFlag_EdgeCut = (1 << 2), | ||||
| eExplodeFlag_Unborn = (1 << 3), | eExplodeFlag_Unborn = (1 << 3), | ||||
| eExplodeFlag_Alive = (1 << 4), | eExplodeFlag_Alive = (1 << 4), | ||||
| eExplodeFlag_Dead = (1 << 5), | eExplodeFlag_Dead = (1 << 5), | ||||
| eExplodeFlag_INVERT_VGROUP = (1 << 6), | eExplodeFlag_INVERT_VGROUP = (1 << 6), | ||||
| } ExplodeModifierFlag; | } ExplodeModifierFlag; | ||||
| typedef struct ExplodeModifierData { | typedef struct ExplodeModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| int *facepa; | int *facepa; | ||||
| short flag, vgroup; | short flag, vgroup; | ||||
| float protect; | float protect; | ||||
| /** MAX_CUSTOMDATA_LAYER_NAME. */ | /** MAX_CUSTOMDATA_LAYER_NAME. */ | ||||
| char uvname[64]; | char uvname[64]; | ||||
| void *_pad1; | |||||
| } ExplodeModifierData; | } ExplodeModifierData; | ||||
| typedef struct MultiresModifierData { | typedef struct MultiresModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| char lvl, sculptlvl, renderlvl, totlvl; | char lvl, sculptlvl, renderlvl, totlvl; | ||||
| char simple DNA_DEPRECATED; | char simple DNA_DEPRECATED; | ||||
| char flags, _pad[2]; | char flags, _pad[2]; | ||||
| Show All 13 Lines | |||||
| } MultiresModifierFlag; | } MultiresModifierFlag; | ||||
| /* DEPRECATED, only used for versioning. */ | /* DEPRECATED, only used for versioning. */ | ||||
| typedef struct FluidsimModifierData { | typedef struct FluidsimModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| /** Definition is in DNA_object_fluidsim_types.h. */ | /** Definition is in DNA_object_fluidsim_types.h. */ | ||||
| struct FluidsimSettings *fss; | struct FluidsimSettings *fss; | ||||
| void *_pad1; | |||||
| } FluidsimModifierData; | } FluidsimModifierData; | ||||
| /* DEPRECATED, only used for versioning. */ | /* DEPRECATED, only used for versioning. */ | ||||
| typedef struct SmokeModifierData { | typedef struct SmokeModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| /** Domain, inflow, outflow, .... */ | /** Domain, inflow, outflow, .... */ | ||||
| int type; | int type; | ||||
| ▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | typedef struct SimpleDeformModifierData { | ||||
| /** Deform function. */ | /** Deform function. */ | ||||
| char mode; | char mode; | ||||
| /** Lock axis (for taper and stretch). */ | /** Lock axis (for taper and stretch). */ | ||||
| char axis; | char axis; | ||||
| /** Axis to perform the deform on (default is X, but can be overridden by origin. */ | /** Axis to perform the deform on (default is X, but can be overridden by origin. */ | ||||
| char deform_axis; | char deform_axis; | ||||
| char flag; | char flag; | ||||
| void *_pad1; | |||||
| } SimpleDeformModifierData; | } SimpleDeformModifierData; | ||||
| /* SimpleDeform->flag */ | /* SimpleDeform->flag */ | ||||
| enum { | enum { | ||||
| MOD_SIMPLEDEFORM_FLAG_INVERT_VGROUP = (1 << 0), | MOD_SIMPLEDEFORM_FLAG_INVERT_VGROUP = (1 << 0), | ||||
| }; | }; | ||||
| enum { | enum { | ||||
| ▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | typedef struct ScrewModifierData { | ||||
| unsigned int render_steps; | unsigned int render_steps; | ||||
| unsigned int iter; | unsigned int iter; | ||||
| float screw_ofs; | float screw_ofs; | ||||
| float angle; | float angle; | ||||
| float merge_dist; | float merge_dist; | ||||
| short flag; | short flag; | ||||
| char axis; | char axis; | ||||
| char _pad[5]; | char _pad[5]; | ||||
| void *_pad1; | |||||
| } ScrewModifierData; | } ScrewModifierData; | ||||
| enum { | enum { | ||||
| MOD_SCREW_NORMAL_FLIP = (1 << 0), | MOD_SCREW_NORMAL_FLIP = (1 << 0), | ||||
| MOD_SCREW_NORMAL_CALC = (1 << 1), | MOD_SCREW_NORMAL_CALC = (1 << 1), | ||||
| MOD_SCREW_OBJECT_OFFSET = (1 << 2), | MOD_SCREW_OBJECT_OFFSET = (1 << 2), | ||||
| /* MOD_SCREW_OBJECT_ANGLE = (1 << 4), */ | /* MOD_SCREW_OBJECT_ANGLE = (1 << 4), */ | ||||
| MOD_SCREW_SMOOTH_SHADING = (1 << 5), | MOD_SCREW_SMOOTH_SHADING = (1 << 5), | ||||
| ▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | typedef struct WarpModifierData { | ||||
| struct CurveMapping *curfalloff; | struct CurveMapping *curfalloff; | ||||
| /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | /** Optional vertexgroup name, MAX_VGROUP_NAME. */ | ||||
| char defgrp_name[64]; | char defgrp_name[64]; | ||||
| float strength; | float strength; | ||||
| float falloff_radius; | float falloff_radius; | ||||
| char flag; | char flag; | ||||
| char falloff_type; | char falloff_type; | ||||
| char _pad[6]; | char _pad[6]; | ||||
| void *_pad1; | |||||
| } WarpModifierData; | } WarpModifierData; | ||||
| /* WarpModifierData->flag */ | /* WarpModifierData->flag */ | ||||
| enum { | enum { | ||||
| MOD_WARP_VOLUME_PRESERVE = (1 << 0), | MOD_WARP_VOLUME_PRESERVE = (1 << 0), | ||||
| MOD_WARP_INVERT_VGROUP = (1 << 1), | MOD_WARP_INVERT_VGROUP = (1 << 1), | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | typedef struct WeightVGEditModifierData { | ||||
| char mask_tex_map_bone[64]; | char mask_tex_map_bone[64]; | ||||
| /** How to map the texture (using MOD_DISP_MAP_* enums). */ | /** How to map the texture (using MOD_DISP_MAP_* enums). */ | ||||
| int mask_tex_mapping; | int mask_tex_mapping; | ||||
| /** Name of the UV map. MAX_CUSTOMDATA_LAYER_NAME. */ | /** Name of the UV map. MAX_CUSTOMDATA_LAYER_NAME. */ | ||||
| char mask_tex_uvlayer_name[64]; | char mask_tex_uvlayer_name[64]; | ||||
| /* Padding... */ | /* Padding... */ | ||||
| char _pad0[4]; | char _pad0[4]; | ||||
| void *_pad1; | |||||
| } WeightVGEditModifierData; | } WeightVGEditModifierData; | ||||
| /* WeightVGEdit flags. */ | /* WeightVGEdit flags. */ | ||||
| enum { | enum { | ||||
| MOD_WVG_EDIT_WEIGHTS_NORMALIZE = (1 << 0), | MOD_WVG_EDIT_WEIGHTS_NORMALIZE = (1 << 0), | ||||
| MOD_WVG_INVERT_FALLOFF = (1 << 1), | MOD_WVG_INVERT_FALLOFF = (1 << 1), | ||||
| MOD_WVG_EDIT_INVERT_VGROUP_MASK = (1 << 2), | MOD_WVG_EDIT_INVERT_VGROUP_MASK = (1 << 2), | ||||
| /** Add vertices with higher weight than threshold to vgroup. */ | /** Add vertices with higher weight than threshold to vgroup. */ | ||||
| ▲ Show 20 Lines • Show All 550 Lines • ▼ Show 20 Lines | typedef struct DataTransferModifierData { | ||||
| /** See CDT_MIX_ enum in BKE_customdata.h. */ | /** See CDT_MIX_ enum in BKE_customdata.h. */ | ||||
| int mix_mode; | int mix_mode; | ||||
| float mix_factor; | float mix_factor; | ||||
| /** MAX_VGROUP_NAME. */ | /** MAX_VGROUP_NAME. */ | ||||
| char defgrp_name[64]; | char defgrp_name[64]; | ||||
| int flags; | int flags; | ||||
| void *_pad2; | |||||
| } DataTransferModifierData; | } DataTransferModifierData; | ||||
| /* DataTransferModifierData.flags */ | /* DataTransferModifierData.flags */ | ||||
| enum { | enum { | ||||
| MOD_DATATRANSFER_OBSRC_TRANSFORM = 1 << 0, | MOD_DATATRANSFER_OBSRC_TRANSFORM = 1 << 0, | ||||
| MOD_DATATRANSFER_MAP_MAXDIST = 1 << 1, | MOD_DATATRANSFER_MAP_MAXDIST = 1 << 1, | ||||
| MOD_DATATRANSFER_INVERT_VGROUP = 1 << 2, | MOD_DATATRANSFER_INVERT_VGROUP = 1 << 2, | ||||
| Show All 14 Lines | typedef struct NormalEditModifierData { | ||||
| short mode; | short mode; | ||||
| short flag; | short flag; | ||||
| short mix_mode; | short mix_mode; | ||||
| char _pad[2]; | char _pad[2]; | ||||
| float mix_factor; | float mix_factor; | ||||
| float mix_limit; | float mix_limit; | ||||
| float offset[3]; | float offset[3]; | ||||
| char _pad0[4]; | char _pad0[4]; | ||||
| void *_pad1; | |||||
| } NormalEditModifierData; | } NormalEditModifierData; | ||||
| /* NormalEditModifierData.mode */ | /* NormalEditModifierData.mode */ | ||||
| enum { | enum { | ||||
| MOD_NORMALEDIT_MODE_RADIAL = 0, | MOD_NORMALEDIT_MODE_RADIAL = 0, | ||||
| MOD_NORMALEDIT_MODE_DIRECTIONAL = 1, | MOD_NORMALEDIT_MODE_DIRECTIONAL = 1, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | typedef struct MeshSeqCacheModifierData { | ||||
| * scale the velocity vectors at render time for generating proper motion blur data. */ | * scale the velocity vectors at render time for generating proper motion blur data. */ | ||||
| float velocity_delta; | float velocity_delta; | ||||
| /* Caches the scene time (in seconds) used to lookup data in the Alembic archive when the | /* 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. */ | * modifier was last executed. Used to access Alembic samples through the RNA. */ | ||||
| float last_lookup_time; | float last_lookup_time; | ||||
| int _pad1; | 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 All 29 Lines | typedef struct SurfaceDeformModifierData { | ||||
| SDefVert *verts; | SDefVert *verts; | ||||
| float falloff; | float falloff; | ||||
| unsigned int numverts, numpoly; | unsigned int numverts, numpoly; | ||||
| int flags; | int flags; | ||||
| float mat[4][4]; | float mat[4][4]; | ||||
| float strength; | float strength; | ||||
| char _pad[4]; | char _pad[4]; | ||||
| char defgrp_name[64]; | char defgrp_name[64]; | ||||
| void *_pad1; | |||||
| } SurfaceDeformModifierData; | } SurfaceDeformModifierData; | ||||
| /* Surface Deform modifier flags */ | /* Surface Deform modifier flags */ | ||||
| enum { | enum { | ||||
| /* This indicates "do bind on next modifier evaluation" as well as "is bound". */ | /* This indicates "do bind on next modifier evaluation" as well as "is bound". */ | ||||
| MOD_SDEF_BIND = (1 << 0), | MOD_SDEF_BIND = (1 << 0), | ||||
| MOD_SDEF_INVERT_VGROUP = (1 << 1) | MOD_SDEF_INVERT_VGROUP = (1 << 1) | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | typedef struct MeshToVolumeModifierData { | ||||
| char _pad1[3]; | char _pad1[3]; | ||||
| /** Band widths are in object space. */ | /** Band widths are in object space. */ | ||||
| float interior_band_width; | float interior_band_width; | ||||
| float exterior_band_width; | float exterior_band_width; | ||||
| float density; | float density; | ||||
| char _pad2[4]; | char _pad2[4]; | ||||
| void *_pad3; | |||||
| } MeshToVolumeModifierData; | } MeshToVolumeModifierData; | ||||
| /* MeshToVolumeModifierData->resolution_mode */ | /* MeshToVolumeModifierData->resolution_mode */ | ||||
| typedef enum MeshToVolumeModifierResolutionMode { | typedef enum MeshToVolumeModifierResolutionMode { | ||||
| MESH_TO_VOLUME_RESOLUTION_MODE_VOXEL_AMOUNT = 0, | MESH_TO_VOLUME_RESOLUTION_MODE_VOXEL_AMOUNT = 0, | ||||
| MESH_TO_VOLUME_RESOLUTION_MODE_VOXEL_SIZE = 1, | MESH_TO_VOLUME_RESOLUTION_MODE_VOXEL_SIZE = 1, | ||||
| } MeshToVolumeModifierResolutionMode; | } MeshToVolumeModifierResolutionMode; | ||||
| Show All 30 Lines | typedef struct VolumeToMeshModifierData { | ||||
| /** VolumeToMeshResolutionMode */ | /** VolumeToMeshResolutionMode */ | ||||
| int resolution_mode; | int resolution_mode; | ||||
| float voxel_size; | float voxel_size; | ||||
| int voxel_amount; | int voxel_amount; | ||||
| /** MAX_NAME */ | /** MAX_NAME */ | ||||
| char grid_name[64]; | char grid_name[64]; | ||||
| void *_pad1; | |||||
| } VolumeToMeshModifierData; | } VolumeToMeshModifierData; | ||||
| /** VolumeToMeshModifierData->resolution_mode */ | /** VolumeToMeshModifierData->resolution_mode */ | ||||
| typedef enum VolumeToMeshResolutionMode { | typedef enum VolumeToMeshResolutionMode { | ||||
| VOLUME_TO_MESH_RESOLUTION_MODE_GRID = 0, | VOLUME_TO_MESH_RESOLUTION_MODE_GRID = 0, | ||||
| VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_AMOUNT = 1, | VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_AMOUNT = 1, | ||||
| VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_SIZE = 2, | VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_SIZE = 2, | ||||
| } VolumeToMeshResolutionMode; | } VolumeToMeshResolutionMode; | ||||
| Show All 9 Lines | |||||