Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,603 Lines • ▼ Show 20 Lines | BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) | ||||
| sculpt_vertex_neighbors_iter_begin(ss, vd.index, ni) | sculpt_vertex_neighbors_iter_begin(ss, vd.index, ni) | ||||
| { | { | ||||
| float vmask_f = data->prev_mask[ni.index]; | float vmask_f = data->prev_mask[ni.index]; | ||||
| if (vmask_f > max) { | if (vmask_f > max) { | ||||
| max = vmask_f; | max = vmask_f; | ||||
| } | } | ||||
| } | } | ||||
| sculpt_vertex_neighbors_iter_end(ni); | sculpt_vertex_neighbors_iter_end(ni); | ||||
| if (max != data->pose_factor[vd.index]) { | if (max != data->prev_mask[vd.index]) { | ||||
| if (check_vertex_pivot_symmetry(vd.co, ss->cache->pose_initial_co, symm)) { | data->pose_factor[vd.index] = max; | ||||
| if (check_vertex_pivot_symmetry( | |||||
| vd.co, sculpt_vertex_co_get(ss, sculpt_active_vertex_get(ss)), symm)) { | |||||
| add_v3_v3(gftd->pos_avg, vd.co); | add_v3_v3(gftd->pos_avg, vd.co); | ||||
| gftd->tot_pos_avg++; | gftd->tot_pos_avg++; | ||||
| } | } | ||||
| } | } | ||||
| data->pose_factor[vd.index] = max; | |||||
| } | } | ||||
| BKE_pbvh_vertex_iter_end; | BKE_pbvh_vertex_iter_end; | ||||
| } | } | ||||
| static void pose_brush_grow_factor_finalize(void *__restrict userdata, void *__restrict tls) | static void pose_brush_grow_factor_finalize(void *__restrict userdata, void *__restrict tls) | ||||
| { | { | ||||
| SculptThreadedTaskData *data = userdata; | SculptThreadedTaskData *data = userdata; | ||||
| ▲ Show 20 Lines • Show All 6,051 Lines • Show Last 20 Lines | |||||