Potential fix for T38111: Duplicating BOIDS emitter cause glitchy operation

Need to reset cached KD tree when duplicating particle system.
This commit is contained in:
Sergey Sharybin
2014-01-16 00:55:38 +06:00
parent e79b244097
commit df72d3cc7f

View File

@@ -1282,6 +1282,7 @@ static ParticleSystem *copy_particlesystem(ParticleSystem *psys)
psysn->frand = NULL;
psysn->pdd = NULL;
psysn->effectors = NULL;
psysn->tree = NULL;
psysn->pathcachebufs.first = psysn->pathcachebufs.last = NULL;
psysn->childcachebufs.first = psysn->childcachebufs.last = NULL;