Fix T84370: Project tool not working with shape keys

A missing flush of the deformed PBVH coordinates to the shape key.

Reviewed By: JacquesLucke

Maniphest Tasks: T84370

Differential Revision: https://developer.blender.org/D10174
This commit is contained in:
Pablo Dobarro 2021-02-03 20:58:21 +01:00
parent 7bde2844ae
commit 1081eee4c5
Notes: blender-bot 2023-02-14 06:00:50 +01:00
Referenced by issue #84370, Sculpt: Line Project doesn't work with Shape Keys
1 changed files with 6 additions and 0 deletions

View File

@ -1465,6 +1465,12 @@ static void sculpt_gesture_project_apply_for_symmetry_pass(bContext *UNUSED(C),
static void sculpt_gesture_project_end(bContext *C, SculptGestureContext *sgcontext)
{
SculptSession *ss = sgcontext->ss;
Sculpt *sd = CTX_data_tool_settings(C)->sculpt;
if (ss->deform_modifiers_active || ss->shapekey_active) {
SCULPT_flush_stroke_deform(sd, sgcontext->vc.obact, true);
}
SCULPT_flush_update_step(C, SCULPT_UPDATE_COORDS);
SCULPT_flush_update_done(C, sgcontext->vc.obact, SCULPT_UPDATE_COORDS);
}