[Bf-blender-cvs] [a6e804eaeef] blender2.8: Particle system: get current time from depsgraph

Sybren A. Stüvel noreply at git.blender.org
Wed May 16 10:51:01 CEST 2018


Commit: a6e804eaeef502bee38462b7adc562a2c161c8bd
Author: Sybren A. Stüvel
Date:   Wed May 16 10:50:49 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa6e804eaeef502bee38462b7adc562a2c161c8bd

Particle system: get current time from depsgraph

This makes the particle animation work again!

===================================================================

M	source/blender/blenkernel/intern/particle_system.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list