From 5063820c9b7fdc499c0aa16ca850541101ffda09 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 19 Jul 2020 13:58:49 +0200 Subject: Particles: Emit particles over time This adds a basic internal emitter for every particle simulation. The emitter cannot be controlled by the user yet. That will come next. --- source/blender/makesdna/DNA_simulation_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_simulation_types.h') diff --git a/source/blender/makesdna/DNA_simulation_types.h b/source/blender/makesdna/DNA_simulation_types.h index a2b81b731d3..c4ff51a107e 100644 --- a/source/blender/makesdna/DNA_simulation_types.h +++ b/source/blender/makesdna/DNA_simulation_types.h @@ -32,6 +32,8 @@ typedef struct Simulation { int flag; float current_frame; + float current_simulation_time; + char _pad[4]; /** List containing SimulationState objects. */ struct ListBase states; @@ -53,7 +55,7 @@ typedef struct ParticleSimulationState { /** Contains the state of the particles at time Simulation->current_frame. */ int tot_particles; - int _pad; + int next_particle_id; struct CustomData attributes; /** Caches the state of the particles over time. The cache only exists on the original data -- cgit v1.2.3