Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_undo.c
| Show First 20 Lines • Show All 641 Lines • ▼ Show 20 Lines | if (lb->first) { | ||||
| if (unode->type == SCULPT_UNDO_FACE_SETS) { | if (unode->type == SCULPT_UNDO_FACE_SETS) { | ||||
| sculpt_undo_restore_face_sets(C, unode); | sculpt_undo_restore_face_sets(C, unode); | ||||
| rebuild = true; | rebuild = true; | ||||
| BKE_pbvh_search_callback(ss->pbvh, NULL, NULL, update_cb, &rebuild); | BKE_pbvh_search_callback(ss->pbvh, NULL, NULL, update_cb, &rebuild); | ||||
| BKE_sculpt_update_object_for_edit(depsgraph, ob, true, need_mask, false); | BKE_sculpt_update_object_for_edit(depsgraph, ob, true, need_mask, false); | ||||
| SCULPT_visibility_sync_all_face_sets_to_vertices(ss); | SCULPT_visibility_sync_all_face_sets_to_vertices(ob); | ||||
| BKE_pbvh_update_vertex_data(ss->pbvh, PBVH_UpdateVisibility); | BKE_pbvh_update_vertex_data(ss->pbvh, PBVH_UpdateVisibility); | ||||
| if (BKE_pbvh_type(ss->pbvh) == PBVH_FACES) { | if (BKE_pbvh_type(ss->pbvh) == PBVH_FACES) { | ||||
| BKE_mesh_flush_hidden_from_verts(ob->data); | BKE_mesh_flush_hidden_from_verts(ob->data); | ||||
| } | } | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_SHADING); | DEG_id_tag_update(&ob->id, ID_RECALC_SHADING); | ||||
| ▲ Show 20 Lines • Show All 1,002 Lines • Show Last 20 Lines | |||||