[Bf-blender-cvs] [0f7851ee79b] master: Fix T78192: Draw Face Sets tool not updating the viewport color

Pablo Dobarro noreply at git.blender.org
Wed Jun 24 17:27:13 CEST 2020


Commit: 0f7851ee79bdcd39b475633b5f65c31aa5370a23
Author: Pablo Dobarro
Date:   Wed Jun 24 16:51:54 2020 +0200
Branches: master
https://developer.blender.org/rB0f7851ee79bdcd39b475633b5f65c31aa5370a23

Fix T78192: Draw Face Sets tool not updating the viewport color

The draw face set tool always needs to redraw the nodes, but it only
needs the full update when in smooth mode because it moves the vertices.

Reviewed By: sergey

Maniphest Tasks: T78192

Differential Revision: https://developer.blender.org/D8108

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

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 8bb6701436a..ffbaf1f1037 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5284,6 +5284,7 @@ static void do_brush_action_task_cb(void *__restrict userdata,
 
   /* Face Sets modifications do a single undo push */
   if (data->brush->sculpt_tool == SCULPT_TOOL_DRAW_FACE_SETS) {
+    BKE_pbvh_node_mark_redraw(data->nodes[n]);
     /* Draw face sets in smooth mode moves the vertices. */
     if (ss->cache->alt_smooth) {
       SCULPT_undo_push_node(data->ob, data->nodes[n], SCULPT_UNDO_COORDS);



More information about the Bf-blender-cvs mailing list