Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
| Show First 20 Lines • Show All 451 Lines • ▼ Show 20 Lines | BKE_pbvh_vertex_iter_begin (ss->pbvh, node, vd, PBVH_ITER_UNIQUE) { | ||||
| if (ELEM(filter_type, MESH_FILTER_SURFACE_SMOOTH, MESH_FILTER_SHARPEN)) { | if (ELEM(filter_type, MESH_FILTER_SURFACE_SMOOTH, MESH_FILTER_SHARPEN)) { | ||||
| madd_v3_v3v3fl(final_pos, vd.co, disp, clamp_f(fade, 0.0f, 1.0f)); | madd_v3_v3v3fl(final_pos, vd.co, disp, clamp_f(fade, 0.0f, 1.0f)); | ||||
| } | } | ||||
| else { | else { | ||||
| add_v3_v3v3(final_pos, orig_co, disp); | add_v3_v3v3(final_pos, orig_co, disp); | ||||
| } | } | ||||
| copy_v3_v3(vd.co, final_pos); | copy_v3_v3(vd.co, final_pos); | ||||
| if (vd.mvert) { | if (vd.mvert) { | ||||
| BKE_pbvh_vert_mark_update(ss->pbvh, vd.vertex); | BKE_pbvh_vert_tag_update_normal(ss->pbvh, vd.vertex); | ||||
| } | } | ||||
| } | } | ||||
| BKE_pbvh_vertex_iter_end; | BKE_pbvh_vertex_iter_end; | ||||
| BKE_pbvh_node_mark_update(node); | BKE_pbvh_node_mark_update(node); | ||||
| } | } | ||||
| static void mesh_filter_enhance_details_init_directions(SculptSession *ss) | static void mesh_filter_enhance_details_init_directions(SculptSession *ss) | ||||
| ▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines | |||||