Particle System: use DEG to get current time in psys_get_particle_state()
This commit is contained in:
parent
eacf63c96f
commit
739c3e8102
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue