Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_smooth.c
| Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | void SCULPT_smooth(Sculpt *sd, | ||||
| count = (int)(bstrength * max_iterations); | count = (int)(bstrength * max_iterations); | ||||
| last = max_iterations * (bstrength - count * fract); | last = max_iterations * (bstrength - count * fract); | ||||
| if (type == PBVH_FACES && !ss->pmap) { | if (type == PBVH_FACES && !ss->pmap) { | ||||
| BLI_assert(!"sculpt smooth: pmap missing"); | BLI_assert(!"sculpt smooth: pmap missing"); | ||||
| return; | return; | ||||
| } | } | ||||
| SCULPT_vertex_random_access_init(ss); | |||||
| SCULPT_boundary_info_ensure(ob); | SCULPT_boundary_info_ensure(ob); | ||||
| for (iteration = 0; iteration <= count; iteration++) { | for (iteration = 0; iteration <= count; iteration++) { | ||||
| const float strength = (iteration != count) ? 1.0f : last; | const float strength = (iteration != count) ? 1.0f : last; | ||||
| SculptThreadedTaskData data = { | SculptThreadedTaskData data = { | ||||
| .sd = sd, | .sd = sd, | ||||
| .ob = ob, | .ob = ob, | ||||
| ▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines | |||||