Fix T70385: Pose brush breaks when using pose origin offset

Reviewed By: jbakker

Maniphest Tasks: T70385

Differential Revision: https://developer.blender.org/D5945
This commit is contained in:
Pablo Dobarro 2019-09-30 14:31:15 +02:00
parent b89a1687ce
commit 3dc027add3
Notes: blender-bot 2023-02-14 11:00:17 +01:00
Referenced by issue #70385, Pose brush breaks when using pose origin offset
1 changed files with 4 additions and 3 deletions

View File

@ -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;