Commit: ffd46014470567fa75a5b6492677137f07936428 Author: Pablo Dobarro Date: Thu Oct 1 01:28:00 2020 +0200 Branches: master https://developer.blender.org/rBffd46014470567fa75a5b6492677137f07936428
Sculpt: Remove mask datalayer after extracting the object When extracting a mask, the new object is going to have the same mask on the same vertices, so it can't be sculpted without clearing the mask first. It makes more sense to delete the mask datalayer from the new object. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9070 =================================================================== M source/blender/editors/mesh/editmesh_mask_extract.c =================================================================== diff --git a/source/blender/editors/mesh/editmesh_mask_extract.c b/source/blender/editors/mesh/editmesh_mask_extract.c index ac3feed4c2a..30949605fec 100644 --- a/source/blender/editors/mesh/editmesh_mask_extract.c +++ b/source/blender/editors/mesh/editmesh_mask_extract.c @@ -222,6 +222,9 @@ static int geometry_extract_apply(bContext *C, Mesh *new_ob_mesh = new_ob->data; CustomData_free_layers(&new_ob_mesh->pdata, CD_SCULPT_FACE_SETS, new_ob_mesh->totpoly); + /* Remove the mask from the new object so it can be sculpted directly after extracting. */ + CustomData_free_layers(&new_ob_mesh->vdata, CD_PAINT_MASK, new_ob_mesh->totvert); + if (params->apply_shrinkwrap) { BKE_shrinkwrap_mesh_nearest_surface_deform(C, new_ob, ob); } _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
