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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user