bmesh toolflags would use BLI_MEMPOOL_SYSMALLOC when reducing layers only (would...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 8 Dec 2012 13:15:04 +0000 (13:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 8 Dec 2012 13:15:04 +0000 (13:15 +0000)
source/blender/bmesh/intern/bmesh_operators.c

index baec0b7745d85da15cbc4ed6489c308616cb6adf..5e51f5a5ada13390ffe79212fe1cd4467d1a3a0b 100644 (file)
@@ -1225,7 +1225,7 @@ static void bmo_flag_layer_free(BMesh *bm)
        /* de-increment the totflags first.. */
        bm->totflags--;
        /* allocate new flag poo */
-       bm->toolflagpool = newpool = BLI_mempool_create(new_totflags_size, 512, 512, BLI_MEMPOOL_SYSMALLOC);
+       bm->toolflagpool = newpool = BLI_mempool_create(new_totflags_size, 512, 512, 0);
        
        /* now go through and memcpy all the flag */
        BM_ITER_MESH_INDEX (ele, &iter, bm, BM_VERTS_OF_MESH, i) {