diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-16 13:07:00 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:11 +0300 |
commit | 6d65107656f0ac23ff7b8c2f7927e417400438f8 (patch) | |
tree | 56065b217f9d2d64cb7d2c75bffaa65c9f319fa5 /source/blender/blenkernel/intern/object.c | |
parent | 04226e324ee7d761d8a77dfdca4abc3933864f15 (diff) |
Make removal of existing particle systems on copying optional.
This will be most useful when copying individual particle systems
one-by-one (to be implemented).
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index bf0aa4536dc..fa0ad32f62d 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -1234,7 +1234,7 @@ BulletSoftBody *copy_bulletsoftbody(BulletSoftBody *bsb) return bsbn; } -static ParticleSystem *copy_particlesystem(ParticleSystem *psys) +ParticleSystem *BKE_object_copy_particlesystem(ParticleSystem *psys) { ParticleSystem *psysn; ParticleData *pa; @@ -1314,7 +1314,7 @@ void BKE_object_copy_particlesystems(Object *obn, Object *ob) BLI_listbase_clear(&obn->particlesystem); for (psys = ob->particlesystem.first; psys; psys = psys->next) { - npsys = copy_particlesystem(psys); + npsys = BKE_object_copy_particlesystem(psys); BLI_addtail(&obn->particlesystem, npsys); |