diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-11-06 01:42:11 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-11-06 01:42:11 +0300 |
commit | 1682a478768adbc3c724e324e9c507de802ad5af (patch) | |
tree | dc992e0478ce9d57147557c65dbcdbd297e0ed73 /source/blender/editors/sculpt_paint/sculpt_face_set.c | |
parent | 057f9caac6079a568770bdc0e7b798d89922ab73 (diff) | |
parent | 02677ec4e0fadc9b2bec694fd14155ea16e48adf (diff) |
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_face_set.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_face_set.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.c b/source/blender/editors/sculpt_paint/sculpt_face_set.c index 3c87407b2db..6eb51c77aef 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.c +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.c @@ -132,6 +132,8 @@ static void do_draw_face_sets_brush_task_cb_ex(void *__restrict userdata, ss, &test, data->brush->falloff_shape); const int thread_id = BLI_task_parallel_thread_id(tls); + MVert *mvert = SCULPT_mesh_deformed_mverts_get(ss); + BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) { if (BKE_pbvh_type(ss->pbvh) == PBVH_FACES) { @@ -140,7 +142,7 @@ static void do_draw_face_sets_brush_task_cb_ex(void *__restrict userdata, const MPoly *p = &ss->mpoly[vert_map->indices[j]]; float poly_center[3]; - BKE_mesh_calc_poly_center(p, &ss->mloop[p->loopstart], ss->mvert, poly_center); + BKE_mesh_calc_poly_center(p, &ss->mloop[p->loopstart], mvert, poly_center); if (sculpt_brush_test_sq_fn(&test, poly_center)) { const float fade = bstrength * SCULPT_brush_strength_factor(ss, |