Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2021-02-03 22:58:21 +0300
committerPablo Dobarro <pablodp606@gmail.com>2021-02-03 22:58:42 +0300
commit1081eee4c569a27881e864df8399a0c3a65daaee (patch)
treefa09b0dca0c4413e0ae915cdc98a01536c0ebc37 /source/blender
parent7bde2844ae8fcf5547edc495a0518cfdad49ffff (diff)
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
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/paint_mask.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index 92c78a674f0..17d13041f28 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -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);
}