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:
parent
a2057005f2
commit
ade6646755
Notes:
blender-bot
2023-02-14 11:00:16 +01:00
Referenced by issue #39180, Particle with fluid physics unstable
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue