Blender Git Commit Log

Git Commits -> Revision 1fe9d67

Revision 1fe9d67 by Alexander Gavrilov (master)
August 11, 2016, 10:36 (GMT)
Fix T49004 and motion blur of cloth, softbody, etc past the end frame.

Point cache read code contains checks designed to prevent it reading
stale data when the relevant simulation code should instead compute
the next frame from the previous one. However in some situations like
motion blur subframes the simulation can't possibly do it and just
exits. This causes completely incorrect motion blur at or after the
last cached frame.

To fix, add a parameter that tells the cache code whether it should
apply the checks and exit, or read what it can even if stale (true
means exactly same as old behavior).

Doing this in cache rather than clamping the frame number better in
the caller lets it handle the case of incomplete cache that stops
before the official last frame.

Reviewed By: mont29, lukastoenne

Maniphest Tasks: T49004

Differential Revision: https://developer.blender.org/D2144

Commit Details:

Full Hash: 1fe9d671cf19f339917a78cb3ab0b6148ab1ceff
Parent Commit: fdc43f9
Lines Changed: +40, -24

8 Modified Paths:

/source/blender/blenkernel/BKE_pointcache.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/cloth.c (+6, -3) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+12, -5) (Diff)
/source/blender/blenkernel/intern/rigidbody.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/smoke.c (+6, -7) (Diff)
/source/blender/blenkernel/intern/softbody.c (+6, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021