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:
parent
1081eee4c5
commit
0f238c5bcb
Notes:
blender-bot
2023-02-14 05:16:25 +01:00
Referenced by issue #85136, Sculpt: Extract Face Set command only works correctly if the BVH is rebuild
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue