Fix for [#27182] particle/collision kill interacting strangely
[blender.git] / source / blender / blenkernel / intern / particle_system.c
index 4e3840832bb126889adb2a6fa82ee5f15646271c..b2e5c059edf3ea485f8238b551a77ac49fb9098a 100644 (file)
@@ -3670,7 +3670,7 @@ static void dynamics_step(ParticleSimulationData *sim, float cfra)
                        pa->size *= 1.0f - part->randsize * PSYS_FRAND(p + 1);
 
                birthtime = pa->time;
-               dietime = birthtime + pa->lifetime;
+               dietime = pa->dietime;
 
                /* store this, so we can do multiple loops over particles */
                pa->state.time = dfra;