Particle System: use DEG to get current time in psys_get_particle_state()

This commit is contained in:
Sybren A. Stüvel 2018-05-16 16:09:48 +02:00
parent eacf63c96f
commit 739c3e8102
1 changed files with 1 additions and 1 deletions

View File

@ -3867,7 +3867,7 @@ int psys_get_particle_state(ParticleSimulationData *sim, int p, ParticleKey *sta
float timestep = psys_get_timestep(sim);
/* negative time means "use current time" */
cfra = state->time > 0 ? state->time : BKE_scene_frame_get(sim->scene);
cfra = state->time > 0 ? state->time : DEG_get_ctime(sim->depsgraph);
if (p >= totpart) {
if (!psys->totchild)