Fix T39180: Particle with fluid physics unstable.

Fluid particles use the particle system's bvhtree structure, which is a
runtime BVH tree. This was not reset properly on copying objects/psys,
which lead to concurrent access in threaded depsgraph updates and memory
corruption.
This commit is contained in:
Lukas Tönne 2014-03-14 11:03:04 +01:00
parent a2057005f2
commit ade6646755
Notes: blender-bot 2023-02-14 11:00:16 +01:00
Referenced by issue #39180, Particle with fluid physics unstable
1 changed files with 1 additions and 0 deletions

View File

@ -1282,6 +1282,7 @@ static ParticleSystem *copy_particlesystem(ParticleSystem *psys)
psysn->pdd = NULL;
psysn->effectors = NULL;
psysn->tree = NULL;
psysn->bvhtree = NULL;
BLI_listbase_clear(&psysn->pathcachebufs);
BLI_listbase_clear(&psysn->childcachebufs);