Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_particle_types.h
| Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | typedef struct ParticleSettings { | ||||
| /* hair dynamics */ | /* hair dynamics */ | ||||
| float bending_random; | float bending_random; | ||||
| /** MAX_MTEX. */ | /** MAX_MTEX. */ | ||||
| struct MTex *mtex[18]; | struct MTex *mtex[18]; | ||||
| struct Collection *instance_collection; | struct Collection *instance_collection; | ||||
| struct ListBase instance_weights; | struct ListBase instance_weights; | ||||
| struct Collection *eff_group DNA_DEPRECATED; // deprecated | struct Collection *force_group DNA_DEPRECATED; // deprecated | ||||
| struct Object *instance_object; | struct Object *instance_object; | ||||
| struct Object *bb_ob; | struct Object *bb_ob; | ||||
| /** Old animation system, deprecated for 2.5. */ | /** Old animation system, deprecated for 2.5. */ | ||||
| struct Ipo *ipo DNA_DEPRECATED; | struct Ipo *ipo DNA_DEPRECATED; | ||||
| struct PartDeflect *pd; | struct PartDeflect *pd; | ||||
| struct PartDeflect *pd2; | struct PartDeflect *pd2; | ||||
| /* modified dm support */ | /* modified dm support */ | ||||
| ▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | #endif | ||||
| PART_DRAW_MAT_COL = (1 << 13), /* deprecated, but used in do_versions */ | PART_DRAW_MAT_COL = (1 << 13), /* deprecated, but used in do_versions */ | ||||
| PART_DRAW_WHOLE_GR = (1 << 14), | PART_DRAW_WHOLE_GR = (1 << 14), | ||||
| PART_DRAW_REN_STRAND = (1 << 15), | PART_DRAW_REN_STRAND = (1 << 15), | ||||
| PART_DRAW_NO_SCALE_OB = (1 << 16), /* used with instance object/collection */ | PART_DRAW_NO_SCALE_OB = (1 << 16), /* used with instance object/collection */ | ||||
| PART_DRAW_GUIDE_HAIRS = (1 << 17), | PART_DRAW_GUIDE_HAIRS = (1 << 17), | ||||
| PART_DRAW_HAIR_GRID = (1 << 18), | PART_DRAW_HAIR_GRID = (1 << 18), | ||||
| } eParticleDrawFlag; | } eParticleDrawFlag; | ||||
| /* part->type */ | /* part->type | ||||
| /* hair is always baked static in object/geometry space */ | * Hair is always baked static in object/geometry space. | ||||
| /* other types (normal particles) are in global space and not static baked */ | * Other types (normal particles) are in global space and not static baked. */ | ||||
mont29: That one should probably be removed? | |||||
| #define PART_EMITTER 0 | enum { | ||||
| //#define PART_REACTOR 1 | PART_EMITTER = (1 << 0), | ||||
| #define PART_HAIR 2 | /* REACTOR type currently unused */ | ||||
| #define PART_FLUID 3 | /* PART_REACTOR = (1 << 1), */ | ||||
| PART_HAIR = (1 << 2), | |||||
| PART_FLUID = (1 << 3), /* deprecated (belonged to elbeem) */ | |||||
Done Inline ActionsUse anonymous enum, allowing to access values from gdb. sergey: Use anonymous enum, allowing to access values from `gdb`. | |||||
| PART_MANTA_FLIP = (1 << 4), | |||||
| PART_MANTA_SPRAY = (1 << 5), | |||||
| PART_MANTA_BUBBLE = (1 << 6), | |||||
| PART_MANTA_FOAM = (1 << 7), | |||||
| PART_MANTA_TRACER = (1 << 8), | |||||
| }; | |||||
| /* Mirroring Mantaflow particle types from particle.h (Mantaflow header). */ | |||||
| enum { | |||||
| PARTICLE_TYPE_NONE = (0 << 0), | |||||
Done Inline ActionsPARTICLE_TYPE_FOO, not POO. sergey: `PARTICLE_TYPE_FOO`, not `POO`. | |||||
| PARTICLE_TYPE_NEW = (1 << 0), | |||||
| PARTICLE_TYPE_SPRAY = (1 << 1), | |||||
| PARTICLE_TYPE_BUBBLE = (1 << 2), | |||||
| PARTICLE_TYPE_FOAM = (1 << 3), | |||||
| PARTICLE_TYPE_TRACER = (1 << 4), | |||||
| PARTICLE_TYPE_DELETE = (1 << 10), | |||||
| PARTICLE_TYPE_INVALID = (1 << 30), | |||||
| }; | |||||
| /* part->flag */ | /* part->flag */ | ||||
| #define PART_REACT_STA_END 1 | #define PART_REACT_STA_END 1 | ||||
| #define PART_REACT_MULTIPLE 2 | #define PART_REACT_MULTIPLE 2 | ||||
| //#define PART_LOOP 4 /* not used anymore */ | //#define PART_LOOP 4 /* not used anymore */ | ||||
| /* for dopesheet */ | /* for dopesheet */ | ||||
| #define PART_DS_EXPAND 8 | #define PART_DS_EXPAND 8 | ||||
| ▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines | |||||
That one should probably be removed?