Particle system: get current time from depsgraph

This makes the particle animation work again!
This commit is contained in:
Sybren A. Stüvel
2018-05-16 10:50:49 +02:00
parent ca8e9c881f
commit a6e804eaee

View File

@@ -4221,7 +4221,7 @@ void particle_system_update(struct Depsgraph *depsgraph, Scene *scene, Object *o
if (!psys_check_enabled(ob, psys, use_render_params))
return;
cfra= BKE_scene_frame_get(scene);
cfra = DEG_get_ctime(depsgraph);
sim.depsgraph = depsgraph;
sim.scene = scene;