Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_filter_color.c
| Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | switch (mode) { | ||||
| if (copy_alpha) { | if (copy_alpha) { | ||||
| final_color[3] = smooth_color[3]; | final_color[3] = smooth_color[3]; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| SCULPT_vertex_color_set(ss, vd.vertex, final_color); | SCULPT_vertex_color_set(ss, vd.vertex, final_color); | ||||
| if (vd.mvert) { | |||||
| BKE_pbvh_vert_mark_update(ss->pbvh, vd.vertex); | |||||
| } | |||||
| } | } | ||||
| BKE_pbvh_vertex_iter_end; | BKE_pbvh_vertex_iter_end; | ||||
| BKE_pbvh_node_mark_update_color(data->nodes[n]); | BKE_pbvh_node_mark_update_color(data->nodes[n]); | ||||
| } | } | ||||
| static void sculpt_color_presmooth_init(SculptSession *ss) | static void sculpt_color_presmooth_init(SculptSession *ss) | ||||
| { | { | ||||
| int totvert = SCULPT_vertex_count_get(ss); | int totvert = SCULPT_vertex_count_get(ss); | ||||
| ▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines | |||||