[Bf-blender-cvs] [2a66bf8] alembic_pointcache: 'READ_OLD' cache return value translates to READ_CACHE_EARLY now, meaning the requested frame/time value is before the first valid sample.

Lukas Tönne noreply at git.blender.org
Thu Oct 16 16:53:47 CEST 2014


Commit: 2a66bf8acb503b6013912a76400c6cba06c6841c
Author: Lukas Tönne
Date:   Sat Nov 30 12:17:27 2013 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB2a66bf8acb503b6013912a76400c6cba06c6841c

'READ_OLD' cache return value translates to READ_CACHE_EARLY now,
meaning the requested frame/time value is before the first valid sample.

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

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 832a8e8..af87ef2 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4713,7 +4713,7 @@ static void system_step(ParticleSimulationData *sim, float cfra)
 			psys_reset(psys, PSYS_RESET_CACHE_MISS);
 			return;
 		}
-		else if (cache_result == PTCACHE_READ_OLD) {
+		else if (cache_result == PTC_READ_SAMPLE_EARLY) {
 			psys->cfra = (float)cache->simframe;
 			cached_step(sim, psys->cfra);
 		}




More information about the Bf-blender-cvs mailing list