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
Notes: blender-bot 2023-02-14 11:22:50 +01:00
Referenced by issue #38111, Duplicating BOIDS emitter cause glitchy operation
1 changed files with 1 additions and 0 deletions

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;