Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_remesh.c
| Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | static int voxel_remesh_exec(bContext *C, wmOperator *op) | ||||
| BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob, &CD_MASK_MESH, true); | BKE_mesh_nomain_to_mesh(new_mesh, mesh, ob, &CD_MASK_MESH, true); | ||||
| if (mesh->flag & ME_REMESH_SMOOTH_NORMALS) { | if (mesh->flag & ME_REMESH_SMOOTH_NORMALS) { | ||||
| BKE_mesh_smooth_flag_set(ob->data, true); | BKE_mesh_smooth_flag_set(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); | |||||
| ED_sculpt_undo_geometry_end(ob); | ED_sculpt_undo_geometry_end(ob); | ||||
| } | } | ||||
| BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL); | BKE_mesh_batch_cache_dirty_tag(ob->data, BKE_MESH_BATCH_DIRTY_ALL); | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| WM_event_add_notifier(C, NC_GEOM | ND_DATA, ob->data); | WM_event_add_notifier(C, NC_GEOM | ND_DATA, ob->data); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| ▲ Show 20 Lines • Show All 1,004 Lines • Show Last 20 Lines | |||||