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>2019-09-30 15:31:15 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-09-30 16:45:27 +0300
commit3dc027add3976557e120a1afdb58e80628ae32b0 (patch)
tree01940246e83bed709b7ae29bde13853fe0d76e43 /source/blender/editors/sculpt_paint/sculpt.c
parentb89a1687ce8987e6a077bf861bbc9054c27544ea (diff)
Fix T70385: Pose brush breaks when using pose origin offset
Reviewed By: jbakker Maniphest Tasks: T70385 Differential Revision: https://developer.blender.org/D5945
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c7
1 files changed, 4 insertions, 3 deletions
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;