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
This commit is contained in:
Pablo Dobarro 2020-06-24 16:51:54 +02:00
parent b4e1571d0b
commit 0f7851ee79
Notes: blender-bot 2023-02-14 05:16:25 +01:00
Referenced by issue #78192, Sculpt vertex color and face sets don't work for me in 2.90.0 Alpha, branch: master, commit date: 2020-06-23
1 changed files with 1 additions and 0 deletions

View File

@ -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);