[Bf-blender-cvs] [1081eee4c56] blender-v2.92-release: Fix T84370: Project tool not working with shape keys

Pablo Dobarro noreply at git.blender.org
Wed Feb 3 20:59:22 CET 2021


Commit: 1081eee4c569a27881e864df8399a0c3a65daaee
Author: Pablo Dobarro
Date:   Wed Feb 3 20:58:21 2021 +0100
Branches: blender-v2.92-release
https://developer.blender.org/rB1081eee4c569a27881e864df8399a0c3a65daaee

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

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

M	source/blender/editors/sculpt_paint/paint_mask.c

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

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);
 }



More information about the Bf-blender-cvs mailing list