Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_mask.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| MEM_freeN(looptris); | MEM_freeN(looptris); | ||||
| Mesh *result = BKE_mesh_from_bmesh_nomain(bm, | Mesh *result = BKE_mesh_from_bmesh_nomain(bm, | ||||
| (&(struct BMeshToMeshParams){ | (&(struct BMeshToMeshParams){ | ||||
| .calc_object_remap = false, | .calc_object_remap = false, | ||||
| }), | }), | ||||
| sculpt_mesh); | sculpt_mesh); | ||||
| BM_mesh_free(bm); | BM_mesh_free(bm); | ||||
| BKE_mesh_nomain_to_mesh( | BKE_mesh_nomain_to_mesh(result, sgcontext->vc.obact->data, sgcontext->vc.obact); | ||||
| result, sgcontext->vc.obact->data, sgcontext->vc.obact, &CD_MASK_MESH, true); | |||||
| } | } | ||||
| static void sculpt_gesture_trim_begin(bContext *C, SculptGestureContext *sgcontext) | static void sculpt_gesture_trim_begin(bContext *C, SculptGestureContext *sgcontext) | ||||
| { | { | ||||
| Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| sculpt_gesture_trim_calculate_depth(sgcontext); | sculpt_gesture_trim_calculate_depth(sgcontext); | ||||
| sculpt_gesture_trim_geometry_generate(sgcontext); | sculpt_gesture_trim_geometry_generate(sgcontext); | ||||
| BKE_sculpt_update_object_for_edit(depsgraph, sgcontext->vc.obact, true, false, false); | BKE_sculpt_update_object_for_edit(depsgraph, sgcontext->vc.obact, true, false, false); | ||||
| ▲ Show 20 Lines • Show All 490 Lines • Show Last 20 Lines | |||||