Commit: 0f238c5bcb190d5297830ed188f570fde0eb49ca
Author: Pablo Dobarro
Date:   Fri Jan 29 18:26:12 2021 +0100
Branches: blender-v2.92-release
https://developer.blender.org/rB0f238c5bcb190d5297830ed188f570fde0eb49ca

Fix T85136: Sculpt geometry extract not using updated mesh

This ensured that the sculpt mode deformation is flushed to the mesh
datablock after leaving sculpt mode, so it can be duplicated and
extracted correctly.

Reviewed By: JacquesLucke

Maniphest Tasks: T85136

Differential Revision: https://developer.blender.org/D10254

===================================================================

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 be9314ad2fd..3e0bee3c4b8 100644
--- a/source/blender/editors/mesh/editmesh_mask_extract.c
+++ b/source/blender/editors/mesh/editmesh_mask_extract.c
@@ -106,6 +106,10 @@ static int geometry_extract_apply(bContext *C,
 
   BKE_sculpt_mask_layers_ensure(ob, NULL);
 
+  /* Ensures that deformation from sculpt mode is taken into accunt before 
duplicating the mesh to
+   * extract the geometry. */
+  CTX_data_ensure_evaluated_depsgraph(C);
+
   Mesh *mesh = ob->data;
   Mesh *new_mesh = (Mesh *)BKE_id_copy(bmain, &mesh->id);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to