bmesh toolflags would use BLI_MEMPOOL_SYSMALLOC when reducing layers only (would use MEM_mallocN in one case but malloc in another). better use blenders MEM_mallocN for both.

This commit is contained in:
Campbell Barton
2012-12-08 13:15:04 +00:00
parent 7b9adab594
commit 231d1a3ddd

View 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) {