remove cellalloc, from my tests jemalloc beats cellalloc, so we better just use a...
[blender.git] / source / blender / blenkernel / intern / particle_system.c
index 69ddcd21cb9500c56fda6d6f45d01bb61f334f1a..7587bfc4be84abde0c56e566b18c4d16559a948e 100644 (file)
@@ -71,7 +71,6 @@
 #include "BLI_utildefines.h"
 #include "BLI_linklist.h"
 #include "BLI_edgehash.h"
-#include "BLI_cellalloc.h"
 
 #include "BKE_main.h"
 #include "BKE_animsys.h"
@@ -3537,7 +3536,7 @@ static void do_hair_dynamics(ParticleSimulationData *sim)
 
                                if(dvert) {
                                        if(!dvert->totweight) {
-                                               dvert->dw = BLI_cellalloc_calloc(sizeof(MDeformWeight), "deformWeight");
+                                               dvert->dw = MEM_callocN(sizeof(MDeformWeight), "deformWeight");
                                                dvert->totweight = 1;
                                        }
 
@@ -3558,7 +3557,7 @@ static void do_hair_dynamics(ParticleSimulationData *sim)
 
                        if(dvert) {
                                if(!dvert->totweight) {
-                                       dvert->dw = BLI_cellalloc_calloc(sizeof(MDeformWeight), "deformWeight");
+                                       dvert->dw = MEM_callocN(sizeof(MDeformWeight), "deformWeight");
                                        dvert->totweight = 1;
                                }
                                /* roots should be 1.0, the rest can be anything from 0.0 to 1.0 */