Blender Git Loki
Git Commits -> Revision dca36a8
Revision dca36a8 by Jacques Lucke (master) November 19, 2020, 18:09 (GMT) |
Fix T82769: remove thread local data from PTCacheMem The issue was that the same point cache was read by multiple threads at the same time (the same object was evaluated for render and for the viewport). Both threads incremented PTCacheMem->cur which lead to the crash. The fix is to remove the PTCacheMem->cur and store it on the stack instead. This way every thread has its own cur. Reviewers: brecht Differential Revision: https://developer.blender.org/D9606 |
Commit Details:
Full Hash: dca36a8ec922bcce6bc4882cd6cba52792ed56ee
Parent Commit: e01bf7a
Lines Changed: +49, -44
5 Modified Paths:
/source/blender/blenkernel/BKE_pointcache.h (+5, -3) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+32, -29) (Diff)
/source/blender/editors/physics/particle_edit.c (+6, -5) (Diff)
/source/blender/editors/physics/particle_edit_undo.c (+6, -5) (Diff)
/source/blender/makesdna/DNA_pointcache_types.h (+0, -2) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+32, -29) (Diff)
/source/blender/editors/physics/particle_edit.c (+6, -5) (Diff)
/source/blender/editors/physics/particle_edit_undo.c (+6, -5) (Diff)
/source/blender/makesdna/DNA_pointcache_types.h (+0, -2) (Diff)