diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-03-10 18:32:09 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-03-10 18:32:09 +0300 |
commit | 1619a5d8e9bb2a897f4fbbfb4593aecee88d7b71 (patch) | |
tree | 5a1845a51c0457eb850ae93ee652f32c39789155 | |
parent | dc8bb3f3a0bcf4bbfa36ff236ac38b717804cfc7 (diff) |
Fix rendering artifacts when changing Face Sets visibility
All sculpt operators and brushes need to use ID_RECALC_SHADING even when
PBVH rendering is not used.
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index e527fbfb40e..b25cdbe39c1 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -11033,10 +11033,10 @@ static int sculpt_face_sets_change_visibility_invoke(bContext *C, } ED_region_tag_redraw(region); + DEG_id_tag_update(&ob->id, ID_RECALC_SHADING); View3D *v3d = CTX_wm_view3d(C); if (!BKE_sculptsession_use_pbvh_draw(ob, v3d)) { - DEG_id_tag_update(&ob->id, ID_RECALC_SHADING); DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); } return OPERATOR_FINISHED; |