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:
@@ -1225,7 +1225,7 @@ static void bmo_flag_layer_free(BMesh *bm)
|
|||||||
/* de-increment the totflags first.. */
|
/* de-increment the totflags first.. */
|
||||||
bm->totflags--;
|
bm->totflags--;
|
||||||
/* allocate new flag poo */
|
/* 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 */
|
/* now go through and memcpy all the flag */
|
||||||
BM_ITER_MESH_INDEX (ele, &iter, bm, BM_VERTS_OF_MESH, i) {
|
BM_ITER_MESH_INDEX (ele, &iter, bm, BM_VERTS_OF_MESH, i) {
|
||||||
|
Reference in New Issue
Block a user