Fix T61906: crash rendering softbody with Cycles and timeline visible.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 11 Mar 2019 09:07:36 +0000 (10:07 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 11 Mar 2019 13:34:13 +0000 (14:34 +0100)
commit57777b95428cef886bd3b2317b7728fa066acee1
treee7555b4ccba56fc33c1a09155c4f25bbcb0d8c1f
parent2cb181d478c3f54adf91188beca0b3fd3e28bcaf
Fix T61906: crash rendering softbody with Cycles and timeline visible.

Make sure we don't reallocate arrays in the pointcache when not needed, the
size of a memory allocation can be slightly bigger than the requested size.

Also, use consistent check for shared cached in copy and free functions.
source/blender/blenkernel/intern/pointcache.c
source/blender/blenkernel/intern/softbody.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_object_force_types.h