Bug fix: particle cache should only be cleared on the exact first integer frame,...
authorJanne Karhu <jhkarh@gmail.com>
Mon, 18 Jul 2011 02:40:54 +0000 (02:40 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Mon, 18 Jul 2011 02:40:54 +0000 (02:40 +0000)
source/blender/blenkernel/intern/particle_system.c

index 63a9c224971b344327d79cf315c55075dee7c5ff..1423f520b9534c1bc23109825250675814db1b31 100644 (file)
@@ -3987,7 +3987,7 @@ static void system_step(ParticleSimulationData *sim, float cfra)
                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;