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
diff options
context:
space:
mode:
authorAndrew Wiggin <ender79bl@gmail.com>2011-11-09 18:39:49 +0400
committerAndrew Wiggin <ender79bl@gmail.com>2011-11-09 18:39:49 +0400
commit0811236da2d5c709e274d9442fd6fbda471c2136 (patch)
tree23dd234053342d6aa9d1e349070f51d543f15538
parent4075fd85b9a873e43fa383bcfc5d6564b1880c9f (diff)
Fix a particle memory allocation mismatch using MEM_allocN for alloc and BLI_cellalloc_free for free
-rw-r--r--source/blender/blenkernel/intern/particle_system.c5
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 */