Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2010-09-14 05:47:01 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-09-14 05:47:01 +0400
commit7245177c26bc6630ce6dd505b6065a2f2c4b4a71 (patch)
tree25cd6c1a2d5718fb1d6a330a1a700ac37dd4a4fc /source
parentca940016e17273d9b32b6b8717fee972de696979 (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.c3
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);