From ade6646755224ce9178d280738727c1a968b28b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Fri, 14 Mar 2014 11:03:04 +0100 Subject: 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. --- source/blender/blenkernel/intern/object.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 43dbc34f3d3..dbc8e4df4c4 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -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); -- cgit v1.2.3