Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
| Show First 20 Lines • Show All 630 Lines • ▼ Show 20 Lines | if (event->type == LEFTMOUSE && event->val == KM_RELEASE) { | ||||
| SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_COORDS); | SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_COORDS); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| if (event->type != MOUSEMOVE) { | if (event->type != MOUSEMOVE) { | ||||
| return OPERATOR_RUNNING_MODAL; | return OPERATOR_RUNNING_MODAL; | ||||
| } | } | ||||
| float len = event->prevclickx - event->mval[0]; | const float len = event->prevclickx - event->x; | ||||
| filter_strength = filter_strength * -len * 0.001f * UI_DPI_FAC; | filter_strength = filter_strength * -len * 0.001f * UI_DPI_FAC; | ||||
| SCULPT_vertex_random_access_ensure(ss); | SCULPT_vertex_random_access_ensure(ss); | ||||
| bool needs_pmap = sculpt_mesh_filter_needs_pmap(filter_type, use_face_sets); | bool needs_pmap = sculpt_mesh_filter_needs_pmap(filter_type, use_face_sets); | ||||
| BKE_sculpt_update_object_for_edit(depsgraph, ob, needs_pmap, false, false); | BKE_sculpt_update_object_for_edit(depsgraph, ob, needs_pmap, false, false); | ||||
| SculptThreadedTaskData data = { | SculptThreadedTaskData data = { | ||||
| ▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines | |||||