Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,278 Lines • ▼ Show 20 Lines | static void do_brush_action_task_cb(void *__restrict userdata, | ||||
| const int n, | const int n, | ||||
| const TaskParallelTLS *__restrict UNUSED(tls)) | const TaskParallelTLS *__restrict UNUSED(tls)) | ||||
| { | { | ||||
| SculptThreadedTaskData *data = userdata; | SculptThreadedTaskData *data = userdata; | ||||
| SculptSession *ss = data->ob->sculpt; | SculptSession *ss = data->ob->sculpt; | ||||
| /* Face Sets modifications do a single undo push */ | /* Face Sets modifications do a single undo push */ | ||||
| if (data->brush->sculpt_tool == SCULPT_TOOL_DRAW_FACE_SETS) { | 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. */ | /* Draw face sets in smooth mode moves the vertices. */ | ||||
| if (ss->cache->alt_smooth) { | if (ss->cache->alt_smooth) { | ||||
| SCULPT_undo_push_node(data->ob, data->nodes[n], SCULPT_UNDO_COORDS); | SCULPT_undo_push_node(data->ob, data->nodes[n], SCULPT_UNDO_COORDS); | ||||
| BKE_pbvh_node_mark_update(data->nodes[n]); | BKE_pbvh_node_mark_update(data->nodes[n]); | ||||
| } | } | ||||
| } | } | ||||
| else if (data->brush->sculpt_tool == SCULPT_TOOL_MASK) { | else if (data->brush->sculpt_tool == SCULPT_TOOL_MASK) { | ||||
| SCULPT_undo_push_node(data->ob, data->nodes[n], SCULPT_UNDO_MASK); | SCULPT_undo_push_node(data->ob, data->nodes[n], SCULPT_UNDO_MASK); | ||||
| ▲ Show 20 Lines • Show All 2,855 Lines • Show Last 20 Lines | |||||