Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_paint_color.c
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | static void do_paint_brush_task_cb_ex(void *__restrict userdata, | ||||
| color_buffer = BKE_pbvh_node_color_buffer_get(data->nodes[n]); | color_buffer = BKE_pbvh_node_color_buffer_get(data->nodes[n]); | ||||
| SculptBrushTest test; | SculptBrushTest test; | ||||
| SculptBrushTestFn sculpt_brush_test_sq_fn = SCULPT_brush_test_init_with_falloff_shape( | SculptBrushTestFn sculpt_brush_test_sq_fn = SCULPT_brush_test_init_with_falloff_shape( | ||||
| ss, &test, data->brush->falloff_shape); | ss, &test, data->brush->falloff_shape); | ||||
| const int thread_id = BLI_task_parallel_thread_id(tls); | const int thread_id = BLI_task_parallel_thread_id(tls); | ||||
| float brush_color[4] = {0.0f, 0.0f, 0.0f, 1.0f}; | float brush_color[4] = {0.0f, 0.0f, 0.0f, 1.0f}; | ||||
| copy_v3_v3(brush_color, BKE_brush_color_get(ss->scene, brush)); | copy_v3_v3(brush_color, | ||||
| ss->cache->invert ? BKE_brush_secondary_color_get(ss->scene, brush) : | |||||
| BKE_brush_color_get(ss->scene, brush)); | |||||
| IMB_colormanagement_srgb_to_scene_linear_v3(brush_color); | IMB_colormanagement_srgb_to_scene_linear_v3(brush_color); | ||||
| BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) | BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) | ||||
| { | { | ||||
| SCULPT_orig_vert_data_update(&orig_data, &vd); | SCULPT_orig_vert_data_update(&orig_data, &vd); | ||||
| bool affect_vertex = false; | bool affect_vertex = false; | ||||
| float distance_to_stroke_location = 0.0f; | float distance_to_stroke_location = 0.0f; | ||||
| ▲ Show 20 Lines • Show All 348 Lines • Show Last 20 Lines | |||||