diff options
author | Andrew Wiggin <ender79bl@gmail.com> | 2011-11-09 18:39:49 +0400 |
---|---|---|
committer | Andrew Wiggin <ender79bl@gmail.com> | 2011-11-09 18:39:49 +0400 |
commit | 0811236da2d5c709e274d9442fd6fbda471c2136 (patch) | |
tree | 23dd234053342d6aa9d1e349070f51d543f15538 /source/blender/blenkernel | |
parent | 4075fd85b9a873e43fa383bcfc5d6564b1880c9f (diff) |
Fix a particle memory allocation mismatch using MEM_allocN for alloc and BLI_cellalloc_free for free
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/particle_system.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index 00abc331f0b..c759641f6a9 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -67,6 +67,7 @@ #include "BLI_utildefines.h" #include "BLI_linklist.h" #include "BLI_edgehash.h" +#include "BLI_cellalloc.h" #include "BKE_main.h" #include "BKE_animsys.h" @@ -3483,7 +3484,7 @@ static void do_hair_dynamics(ParticleSimulationData *sim) if(dvert) { if(!dvert->totweight) { - dvert->dw = MEM_callocN (sizeof(MDeformWeight), "deformWeight"); + dvert->dw = BLI_cellalloc_calloc(sizeof(MDeformWeight), "deformWeight"); dvert->totweight = 1; } @@ -3504,7 +3505,7 @@ static void do_hair_dynamics(ParticleSimulationData *sim) if(dvert) { if(!dvert->totweight) { - dvert->dw = MEM_callocN (sizeof(MDeformWeight), "deformWeight"); + dvert->dw = BLI_cellalloc_calloc(sizeof(MDeformWeight), "deformWeight"); dvert->totweight = 1; } /* roots should be 1.0, the rest can be anything from 0.0 to 1.0 */ |