merge with trunk at r27259 and commit of a patch by anthony jones to fix msvc (though...
[blender-staging.git] / source / blender / blenkernel / intern / BME_Customdata.c
index cd9254eef53cd0878c6de0edf04c44384db5996f..fa6d19f7751b715891099bd8085b53c231665acc 100644 (file)
@@ -83,8 +83,8 @@ void BME_CD_Create(BME_CustomData *data, BME_CustomDataInit *init, int initalloc
        /*alloc our layers*/
        if(data->totlayer){
                /*alloc memory*/
-               data->layers = MEM_callocN(sizeof(BME_CustomDataLayer)*data->totlayer, "BMesh Custom Data Layers");
-               data->pool = BLI_mempool_create(data->totsize, initalloc, initalloc, 0);
+               data->layers = MEM_callocN(sizeof(BME_CustomDataLayer)*data->totlayer, "BMesh Custom Data Layers", 1);
+               data->pool = BLI_mempool_create(data->totsize, initalloc, initalloc, 1);
                /*initialize layer data*/
                for(i=0; i < BME_CD_NUMTYPES; i++){
                        if(init->layout[i]){