Fix for bug: [#8287] crash duplicating softbody hair

-Duplicating a particle system with softbody didn't update the sb->particle pointer correctly.
This commit is contained in:
2008-02-17 12:46:09 +00:00
parent 0ce7e6c7b1
commit e83d8ea586

View File

@@ -1019,8 +1019,10 @@ ParticleSystem *copy_particlesystem(ParticleSystem *psys)
pa->keys= MEM_dupallocN(pa->keys);
}
if(psys->soft)
if(psys->soft) {
psysn->soft= copy_softbody(psys->soft);
psysn->soft->particles = psysn;
}
psysn->pathcache= NULL;
psysn->childcache= NULL;