Fix for [#21928] Can't assign hair
authorJanne Karhu <jhkarh@gmail.com>
Tue, 6 Apr 2010 08:23:28 +0000 (08:23 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Tue, 6 Apr 2010 08:23:28 +0000 (08:23 +0000)
source/blender/blenkernel/intern/particle_system.c

index 0a202e8166eceaedfedbc93187779ca1988ba49e..54abfd8fd40abe782d9f80dfef604a75575d1574 100644 (file)
@@ -3732,7 +3732,7 @@ static void system_step(ParticleSimulationData *sim, float cfra)
        oldtotpart = psys->totpart;
 
        emit = emit_particles(sim, use_cache, cfra);
-       if(emit > 0)
+       if(use_cache && emit > 0)
                BKE_ptcache_id_clear(&pid, PTCACHE_CLEAR_ALL, cfra);
        init = emit*emit + (psys->recalc & PSYS_RECALC_RESET);