Fix #127731: Sculpt crash on Extract Face Set usage
This is due to function mismatch. Use CPP style `MEM_delete` to fix the crash. Pull Request: https://projects.blender.org/blender/blender/pulls/127732
This commit is contained in:
@@ -194,7 +194,7 @@ static int geometry_extract_apply(bContext *C,
|
||||
new_mesh->attributes_for_write().remove(".sculpt_mask");
|
||||
|
||||
BKE_editmesh_free_data(em);
|
||||
MEM_freeN(em);
|
||||
MEM_delete(em);
|
||||
|
||||
if (new_mesh->verts_num == 0) {
|
||||
BKE_id_free(bmain, new_mesh);
|
||||
|
||||
Reference in New Issue
Block a user