diff options
author | Jacques Lucke <jacques@blender.org> | 2020-11-19 21:09:24 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-11-19 21:09:24 +0300 |
commit | dca36a8ec922bcce6bc4882cd6cba52792ed56ee (patch) | |
tree | 0216b0fb48b8cd7a82f3775c6310786163d0b3b2 /source/blender/makesdna | |
parent | e01bf7a92ecad3c64d0b1ae176f402d2638e246c (diff) |
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
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_pointcache_types.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_pointcache_types.h b/source/blender/makesdna/DNA_pointcache_types.h index 79d46ffe112..de2fa3f10fe 100644 --- a/source/blender/makesdna/DNA_pointcache_types.h +++ b/source/blender/makesdna/DNA_pointcache_types.h @@ -64,8 +64,6 @@ typedef struct PTCacheMem { /** BPHYS_TOT_DATA. */ void *data[8]; - /** BPHYS_TOT_DATA. */ - void *cur[8]; struct ListBase extradata; } PTCacheMem; |