diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-02 19:26:37 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-02 19:35:16 +0300 |
commit | f20f82ce3ee55c12adcec024e0133e71183e07b3 (patch) | |
tree | b1fbbdbc22d743315eaeaac62e0a5ea60ae6aff5 /source/blender/blenkernel/intern/cloth.c | |
parent | 9b1f726248afcbc415846526a03acbd92d3235d0 (diff) |
Fix segfaults when deleting objects with upstream bullet lib
Blender tried to free objects twice from the bullet world sometime.
First we would implicity remove all objects when recreating the bullet
world and then explicity try to remove them again from the now empty
world.
This would wouldn't crash older bullet versions, but the recent versions
will as we will try to free objects that no longer exists in the bullet
world.
Also clear the cache on deletion as the object order changes.
Fix T77181: The cache clearing will fix this issue.
Diffstat (limited to 'source/blender/blenkernel/intern/cloth.c')
0 files changed, 0 insertions, 0 deletions