[Bf-blender-cvs] [3dc027add39] master: Fix T70385: Pose brush breaks when using pose origin offset

Pablo Dobarro noreply at git.blender.org
Mon Sep 30 15:44:28 CEST 2019


Commit: 3dc027add3976557e120a1afdb58e80628ae32b0
Author: Pablo Dobarro
Date:   Mon Sep 30 14:31:15 2019 +0200
Branches: master
https://developer.blender.org/rB3dc027add3976557e120a1afdb58e80628ae32b0

Fix T70385: Pose brush breaks when using pose origin offset

Reviewed By: jbakker

Maniphest Tasks: T70385

Differential Revision: https://developer.blender.org/D5945

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index d841d65ea62..90c5c3e32f0 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3609,13 +3609,14 @@ static void pose_brush_grow_factor_task_cb_ex(void *__restrict userdata,
       }
     }
     sculpt_vertex_neighbors_iter_end(ni);
-    if (max != data->pose_factor[vd.index]) {
-      if (check_vertex_pivot_symmetry(vd.co, ss->cache->pose_initial_co, symm)) {
+    if (max != data->prev_mask[vd.index]) {
+      data->pose_factor[vd.index] = max;
+      if (check_vertex_pivot_symmetry(
+              vd.co, sculpt_vertex_co_get(ss, sculpt_active_vertex_get(ss)), symm)) {
         add_v3_v3(gftd->pos_avg, vd.co);
         gftd->tot_pos_avg++;
       }
     }
-    data->pose_factor[vd.index] = max;
   }
 
   BKE_pbvh_vertex_iter_end;



More information about the Bf-blender-cvs mailing list