Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-06-24 17:51:54 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-06-24 18:27:01 +0300
commit0f7851ee79bdcd39b475633b5f65c31aa5370a23 (patch)
treefb1dacf47a49f93f6cd3d786f09cc56fc35dfb12 /source/blender/editors/sculpt_paint
parentb4e1571d0bcf186df979455cf9852dccd325345b (diff)
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
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c1
1 files changed, 1 insertions, 0 deletions
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);