[Bf-blender-cvs] [1619a5d8e9b] master: Fix rendering artifacts when changing Face Sets visibility

Pablo Dobarro noreply at git.blender.org
Tue Mar 10 16:32:43 CET 2020


Commit: 1619a5d8e9bb2a897f4fbbfb4593aecee88d7b71
Author: Pablo Dobarro
Date:   Tue Mar 10 16:32:09 2020 +0100
Branches: master
https://developer.blender.org/rB1619a5d8e9bb2a897f4fbbfb4593aecee88d7b71

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.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list