Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_pose.c
| Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) { | ||||
| /* Apply the accumulated displacement to the vertex. */ | /* Apply the accumulated displacement to the vertex. */ | ||||
| add_v3_v3v3(final_pos, orig_data.co, total_disp); | add_v3_v3v3(final_pos, orig_data.co, total_disp); | ||||
| float *target_co = SCULPT_brush_deform_target_vertex_co_get(ss, brush->deform_target, &vd); | float *target_co = SCULPT_brush_deform_target_vertex_co_get(ss, brush->deform_target, &vd); | ||||
| copy_v3_v3(target_co, final_pos); | copy_v3_v3(target_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; | ||||
| } | } | ||||
| typedef struct PoseGrowFactorTLSData { | typedef struct PoseGrowFactorTLSData { | ||||
| float pos_avg[3]; | float pos_avg[3]; | ||||
| int pos_count; | int pos_count; | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||