Fix T68657: Voxel remesh crash
authorCampbell Barton <ideasman42@gmail.com>
Wed, 14 Aug 2019 17:51:06 +0000 (03:51 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 14 Aug 2019 17:51:06 +0000 (03:51 +1000)
Mesh was being double freed.

source/blender/editors/object/object_remesh.c

index a7e7256757db0dba489aa289a68680fe2671b75e..2234b3875b774d22fdc0b026f42bc6567c20a992 100644 (file)
@@ -119,7 +119,6 @@ static int voxel_remesh_exec(bContext *C, wmOperator *op)
   }
 
   BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob, &CD_MASK_MESH, true);
-  BKE_mesh_free(new_mesh);
 
   if (mesh->flag & ME_REMESH_REPROJECT_PAINT_MASK) {
     BKE_remesh_reproject_paint_mask(mesh, obj_mesh_copy);