diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-14 05:47:01 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-14 05:47:01 +0400 |
commit | 7245177c26bc6630ce6dd505b6065a2f2c4b4a71 (patch) | |
tree | 25cd6c1a2d5718fb1d6a330a1a700ac37dd4a4fc /source | |
parent | ca940016e17273d9b32b6b8717fee972de696979 (diff) |
Fix for a particles memory leak:
* Hair wasn't freed properly when changing particles from hair to normal particles.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index 94a316a2c94..07b712c4330 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -384,9 +384,6 @@ void free_hair(Object *ob, ParticleSystem *psys, int dynamics) { PARTICLE_P; - if(psys->part->type != PART_HAIR) - return; - LOOP_PARTICLES { if(pa->hair) MEM_freeN(pa->hair); |