Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_remesh.cc
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | if (mesh->flag & ME_REMESH_REPROJECT_SCULPT_FACE_SETS) { | ||||
| BKE_remesh_reproject_sculpt_face_sets(new_mesh, mesh); | BKE_remesh_reproject_sculpt_face_sets(new_mesh, mesh); | ||||
| } | } | ||||
| if (mesh->flag & ME_REMESH_REPROJECT_VERTEX_COLORS) { | if (mesh->flag & ME_REMESH_REPROJECT_VERTEX_COLORS) { | ||||
| BKE_mesh_runtime_clear_geometry(mesh); | BKE_mesh_runtime_clear_geometry(mesh); | ||||
| BKE_remesh_reproject_vertex_paint(new_mesh, mesh); | BKE_remesh_reproject_vertex_paint(new_mesh, mesh); | ||||
| } | } | ||||
| BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob, &CD_MASK_MESH, true); | BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob); | ||||
| if (smooth_normals) { | if (smooth_normals) { | ||||
| BKE_mesh_smooth_flag_set(static_cast<Mesh *>(ob->data), true); | BKE_mesh_smooth_flag_set(static_cast<Mesh *>(ob->data), true); | ||||
| } | } | ||||
| if (ob->mode == OB_MODE_SCULPT) { | if (ob->mode == OB_MODE_SCULPT) { | ||||
| BKE_sculpt_ensure_orig_mesh_data(CTX_data_scene(C), ob); | BKE_sculpt_ensure_orig_mesh_data(CTX_data_scene(C), ob); | ||||
| ED_sculpt_undo_geometry_end(ob); | ED_sculpt_undo_geometry_end(ob); | ||||
| ▲ Show 20 Lines • Show All 709 Lines • ▼ Show 20 Lines | if (ob->mode == OB_MODE_SCULPT) { | ||||
| ED_sculpt_undo_geometry_begin(ob, qj->op); | ED_sculpt_undo_geometry_begin(ob, qj->op); | ||||
| } | } | ||||
| if (qj->preserve_paint_mask) { | if (qj->preserve_paint_mask) { | ||||
| BKE_mesh_runtime_clear_geometry(mesh); | BKE_mesh_runtime_clear_geometry(mesh); | ||||
| BKE_mesh_remesh_reproject_paint_mask(new_mesh, mesh); | BKE_mesh_remesh_reproject_paint_mask(new_mesh, mesh); | ||||
| } | } | ||||
| BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob, &CD_MASK_MESH, true); | BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob); | ||||
| if (qj->smooth_normals) { | if (qj->smooth_normals) { | ||||
| BKE_mesh_smooth_flag_set(static_cast<Mesh *>(ob->data), true); | BKE_mesh_smooth_flag_set(static_cast<Mesh *>(ob->data), true); | ||||
| } | } | ||||
| if (ob->mode == OB_MODE_SCULPT) { | if (ob->mode == OB_MODE_SCULPT) { | ||||
| BKE_sculpt_ensure_orig_mesh_data(qj->scene, ob); | BKE_sculpt_ensure_orig_mesh_data(qj->scene, ob); | ||||
| ED_sculpt_undo_geometry_end(ob); | ED_sculpt_undo_geometry_end(ob); | ||||
| ▲ Show 20 Lines • Show All 311 Lines • Show Last 20 Lines | |||||