forked from bartvdbraak/blender
Fix for a particles memory leak:
* Hair wasn't freed properly when changing particles from hair to normal particles.
This commit is contained in:
parent
ca940016e1
commit
7245177c26
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user