diff options
Diffstat (limited to 'source/blender/makesdna/DNA_simulation_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_simulation_types.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/source/blender/makesdna/DNA_simulation_types.h b/source/blender/makesdna/DNA_simulation_types.h index f7a7f94da53..5bb0e50e089 100644 --- a/source/blender/makesdna/DNA_simulation_types.h +++ b/source/blender/makesdna/DNA_simulation_types.h @@ -46,10 +46,7 @@ typedef struct SimulationState { struct SimulationState *next; struct SimulationState *prev; - /** eSimulationStateType */ - int type; - int _pad; - + char *type; char *name; } SimulationState; @@ -60,13 +57,15 @@ typedef struct ParticleSimulationState { int tot_particles; int next_particle_id; struct CustomData attributes; - - /** Caches the state of the particles over time. The cache only exists on the original data - * block, not on cow copies. */ - struct PointCache *point_cache; - struct ListBase ptcaches; } ParticleSimulationState; +typedef struct ParticleMeshEmitterSimulationState { + SimulationState head; + + float last_birth_time; + char _pad[4]; +} ParticleMeshEmitterSimulationState; + /** Stores a mapping between an integer handle and a corresponding ID data block. */ typedef struct PersistentDataHandleItem { struct PersistentDataHandleItem *next; @@ -81,9 +80,7 @@ enum { SIM_DS_EXPAND = (1 << 0), }; -/* SimulationCache.type */ -typedef enum eSimulationStateType { - SIM_STATE_TYPE_PARTICLES = 0, -} eSimulationStateType; +#define SIM_TYPE_NAME_PARTICLE_SIMULATION "Particle Simulation" +#define SIM_TYPE_NAME_PARTICLE_MESH_EMITTER "Particle Mesh Emitter" #endif /* __DNA_SIMULATION_TYPES_H__ */ |