Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
| Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Lines | switch (filter_type) { | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case MESH_FILTER_ENHANCE_DETAILS: { | case MESH_FILTER_ENHANCE_DETAILS: { | ||||
| mul_v3_v3fl(disp, ss->filter_cache->detail_directions[vd.index], -fabsf(fade)); | mul_v3_v3fl(disp, ss->filter_cache->detail_directions[vd.index], -fabsf(fade)); | ||||
| } break; | } break; | ||||
| case MESH_FILTER_ERASE_DISPLACEMENT: { | case MESH_FILTER_ERASE_DISPLACEMENT: { | ||||
| fade = clamp_f(fade, 0.0f, 1.0f); | fade = clamp_f(fade, -1.0f, 1.0f); | ||||
| sub_v3_v3v3(disp, ss->filter_cache->limit_surface_co[vd.index], orig_co); | sub_v3_v3v3(disp, ss->filter_cache->limit_surface_co[vd.index], orig_co); | ||||
| mul_v3_fl(disp, fade); | mul_v3_fl(disp, fade); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| SCULPT_filter_to_orientation_space(disp, ss->filter_cache); | SCULPT_filter_to_orientation_space(disp, ss->filter_cache); | ||||
| for (int it = 0; it < 3; it++) { | for (int it = 0; it < 3; it++) { | ||||
| ▲ Show 20 Lines • Show All 380 Lines • Show Last 20 Lines | |||||