Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_face_set.c
| Show First 20 Lines • Show All 943 Lines • ▼ Show 20 Lines | static int sculpt_face_sets_change_visibility_exec(bContext *C, wmOperator *op) | ||||
| for (int i = 0; i < totnode; i++) { | for (int i = 0; i < totnode; i++) { | ||||
| BKE_pbvh_node_mark_update_visibility(nodes[i]); | BKE_pbvh_node_mark_update_visibility(nodes[i]); | ||||
| } | } | ||||
| BKE_pbvh_update_vertex_data(ss->pbvh, PBVH_UpdateVisibility); | BKE_pbvh_update_vertex_data(ss->pbvh, PBVH_UpdateVisibility); | ||||
| MEM_SAFE_FREE(nodes); | MEM_SAFE_FREE(nodes); | ||||
| if (BKE_pbvh_type(pbvh) == PBVH_FACES) { | |||||
| BKE_mesh_flush_hidden_from_verts(ob->data); | |||||
| } | |||||
| SCULPT_tag_update_overlays(C); | SCULPT_tag_update_overlays(C); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int sculpt_face_sets_change_visibility_invoke(bContext *C, | static int sculpt_face_sets_change_visibility_invoke(bContext *C, | ||||
| wmOperator *op, | wmOperator *op, | ||||
| const wmEvent *event) | const wmEvent *event) | ||||
| ▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines | |||||