Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
| Show First 20 Lines • Show All 697 Lines • ▼ Show 20 Lines | static int sculpt_mesh_filter_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| } | } | ||||
| SCULPT_vertex_random_access_ensure(ss); | SCULPT_vertex_random_access_ensure(ss); | ||||
| BKE_sculpt_update_object_for_edit(depsgraph, ob, needs_topology_info, false, false); | BKE_sculpt_update_object_for_edit(depsgraph, ob, needs_topology_info, false, false); | ||||
| if (needs_topology_info) { | if (needs_topology_info) { | ||||
| SCULPT_boundary_info_ensure(ob); | SCULPT_boundary_info_ensure(ob); | ||||
| } | } | ||||
| SCULPT_undo_push_begin("Mesh Filter"); | SCULPT_undo_push_begin(ob, "Mesh Filter"); | ||||
| SCULPT_filter_cache_init(C, ob, sd, SCULPT_UNDO_COORDS); | SCULPT_filter_cache_init(C, ob, sd, SCULPT_UNDO_COORDS); | ||||
| FilterCache *filter_cache = ss->filter_cache; | FilterCache *filter_cache = ss->filter_cache; | ||||
| filter_cache->active_face_set = SCULPT_FACE_SET_NONE; | filter_cache->active_face_set = SCULPT_FACE_SET_NONE; | ||||
| filter_cache->automasking = SCULPT_automasking_cache_init(sd, NULL, ob); | filter_cache->automasking = SCULPT_automasking_cache_init(sd, NULL, ob); | ||||
| switch (filter_type) { | switch (filter_type) { | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||