diff options
author | Hans Goudey <h.goudey@me.com> | 2022-08-02 19:09:22 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-08-02 19:11:20 +0300 |
commit | 2d4498e457d308d29b4617ba681f332262bc8ddf (patch) | |
tree | 9abc0aa57fd863e3064e83e166826ac390afe0ed /source/blender/editors/sculpt_paint/sculpt.c | |
parent | ac9d9c993ad1610881828e89f131dc7e9bf8e8c2 (diff) | |
parent | efe0e2b18370972c14383e809719c2b606abc414 (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 2366089cefb..17acf8d884e 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -346,7 +346,6 @@ void SCULPT_vertex_visible_set(SculptSession *ss, PBVHVertRef vertex, bool visib switch (BKE_pbvh_type(ss->pbvh)) { case PBVH_FACES: SET_FLAG_FROM_TEST(ss->mvert[vertex.i].flag, !visible, ME_HIDE); - BKE_pbvh_vert_mark_update(ss->pbvh, vertex); break; case PBVH_BMESH: { BMVert *v = (BMVert *)vertex.i; @@ -591,7 +590,6 @@ static void UNUSED_FUNCTION(sculpt_visibility_sync_vertex_to_face_sets)(SculptSe ss->face_sets[vert_map->indices[i]] = -abs(ss->face_sets[vert_map->indices[i]]); } } - BKE_pbvh_vert_mark_update(ss->pbvh, vertex); } void SCULPT_visibility_sync_all_vertex_to_face_sets(SculptSession *ss) @@ -1444,6 +1442,9 @@ static void paint_mesh_restore_co_task_cb(void *__restrict userdata, else { copy_v3_v3(vd.fno, orig_data.no); } + if (vd.mvert) { + BKE_pbvh_vert_tag_update_normal(ss->pbvh, vd.vertex); + } } else if (orig_data.unode->type == SCULPT_UNDO_MASK) { *vd.mask = orig_data.mask; @@ -1451,10 +1452,6 @@ static void paint_mesh_restore_co_task_cb(void *__restrict userdata, else if (orig_data.unode->type == SCULPT_UNDO_COLOR) { SCULPT_vertex_color_set(ss, vd.vertex, orig_data.col); } - - if (vd.mvert) { - BKE_pbvh_vert_mark_update(ss->pbvh, vd.vertex); - } } BKE_pbvh_vertex_iter_end; } @@ -3081,7 +3078,7 @@ static void do_gravity_task_cb_ex(void *__restrict userdata, mul_v3_v3fl(proxy[vd.i], offset, fade); if (vd.mvert) { - BKE_pbvh_vert_mark_update(ss->pbvh, vd.vertex); + BKE_pbvh_vert_tag_update_normal(ss->pbvh, vd.vertex); } } BKE_pbvh_vertex_iter_end; |