Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-05-16 11:50:49 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-05-16 11:50:49 +0300
commita6e804eaeef502bee38462b7adc562a2c161c8bd (patch)
treec9754cf0a91febed02079fe26fd629d858b3b50d /source/blender/blenkernel
parentca8e9c881f282f2eb54d811a94b6cb0ff95fd6b1 (diff)
Particle system: get current time from depsgraph
This makes the particle animation work again!
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 74348246da2..6a9191b7948 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -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;