Fix #30449: sampled motion blur not working with softbody.

This commit is contained in:
Brecht Van Lommel
2012-03-19 17:22:01 +00:00
parent c2c0597239
commit 8e0493b290

View File

@@ -4132,7 +4132,7 @@ void sbObjectStep(Scene *scene, Object *ob, float cfra, float (*vertexCos)[3], i
}
/* try to read from cache */
cache_result = BKE_ptcache_read(&pid, framenr);
cache_result = BKE_ptcache_read(&pid, (float)framenr+scene->r.subframe);
if (cache_result == PTCACHE_READ_EXACT || cache_result == PTCACHE_READ_INTERPOLATED) {
softbody_to_object(ob, vertexCos, numVerts, sb->local);