[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38463] trunk/blender/source/blender/ blenkernel/intern/particle_system.c: Bug fix: particle cache should only be cleared on the exact first integer frame, not in the case of a subframe between the first and second frame.

Janne Karhu jhkarh at gmail.com
Mon Jul 18 04:40:54 CEST 2011


Revision: 38463
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38463
Author:   jhk
Date:     2011-07-18 02:40:54 +0000 (Mon, 18 Jul 2011)
Log Message:
-----------
Bug fix: particle cache should only be cleared on the exact first integer frame, not in the case of a subframe between the first and second frame.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/particle_system.c

Modified: trunk/blender/source/blender/blenkernel/intern/particle_system.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/particle_system.c	2011-07-17 20:06:50 UTC (rev 38462)
+++ trunk/blender/source/blender/blenkernel/intern/particle_system.c	2011-07-18 02:40:54 UTC (rev 38463)
@@ -3987,7 +3987,7 @@
 		BKE_ptcache_id_time(pid, sim->scene, 0.0f, &startframe, &endframe, NULL);
 
 		/* clear everythin on start frame */
-		if((int)cfra == startframe) {
+		if(cfra == startframe) {
 			BKE_ptcache_id_reset(sim->scene, pid, PTCACHE_RESET_OUTDATED);
 			BKE_ptcache_validate(cache, startframe);
 			cache->flag &= ~PTCACHE_REDO_NEEDED;




More information about the Bf-blender-cvs mailing list