diff options
author | Janne Karhu <jhkarh@gmail.com> | 2008-02-17 15:46:09 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2008-02-17 15:46:09 +0300 |
commit | e83d8ea5864288f286251e1b7a328cfa72590741 (patch) | |
tree | 8a7445c9a651cbc62fd610d3464119db59398a23 /source/blender/blenkernel/intern/object.c | |
parent | 0ce7e6c7b1d9838d74ff086818893ab0c3cd8f54 (diff) |
Fix for bug: [#8287] crash duplicating softbody hair
-Duplicating a particle system with softbody didn't update the sb->particle pointer correctly.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 4505af65a0a..e25c89c9f83 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -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; |