mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue