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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user