Blender Git Commit Log
Git Commits -> Revision 22f6755
Revision 22f6755 by Luca Rood (cloth-improvements) January 13, 2017, 22:10 (GMT) |
Make caching a bit more sane (fixes plasticity issue) This cleans up the cloth caching logic a bit. Now, a simulation step only occurs if the current time is exactly one frame after the last simulated step, thus preventing time gaps and runtime data corruption. Also, now the cloth is only re-initialized if the cache is actually outdated, instead of always being reset when on the first frame. This solves a bug where the cache was freed when moving the time to a point within the cached period. These changes also fix the issue of non-cached runtime simulation state properties (e.g. plasticity) being reset when going to the first frame or retaining a future state when simulating over an existing cache with time gaps. |
Commit Details:
Full Hash: 22f67557d14e38c7d83a5770e1c725bd34df5f33
Parent Commit: 63f0231
Lines Changed: +5, -7
1 Modified Path:
/source/blender/blenkernel/intern/cloth.c (+5, -7) (Diff)