Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_smooth.c
| Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | if (sculpt_brush_test_sq_fn(&test, vd.co)) { | ||||
| } | } | ||||
| else { | else { | ||||
| float avg[3], val[3]; | float avg[3], val[3]; | ||||
| SCULPT_neighbor_coords_average(ss, avg, vd.index); | SCULPT_neighbor_coords_average(ss, avg, vd.index); | ||||
| sub_v3_v3v3(val, avg, vd.co); | sub_v3_v3v3(val, avg, vd.co); | ||||
| madd_v3_v3v3fl(val, vd.co, val, fade); | madd_v3_v3v3fl(val, vd.co, val, fade); | ||||
| SCULPT_clip(sd, ss, vd.co, val); | SCULPT_clip(sd, ss, vd.co, val); | ||||
| } | } | ||||
| if (vd.mvert) { | |||||
| vd.mvert->flag |= ME_VERT_PBVH_UPDATE; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| BKE_pbvh_vertex_iter_end; | BKE_pbvh_vertex_iter_end; | ||||
| } | } | ||||
| void SCULPT_smooth(Sculpt *sd, | void SCULPT_smooth(Sculpt *sd, | ||||
| Object *ob, | Object *ob, | ||||
| PBVHNode **nodes, | PBVHNode **nodes, | ||||
| ▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines | |||||