Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/paint.c
| Show First 20 Lines • Show All 1,845 Lines • ▼ Show 20 Lines | static PBVH *build_pbvh_from_ccg(Object *ob, SubdivCCG *subdiv_ccg) | ||||
| BKE_pbvh_build_grids(pbvh, | BKE_pbvh_build_grids(pbvh, | ||||
| subdiv_ccg->grids, | subdiv_ccg->grids, | ||||
| subdiv_ccg->num_grids, | subdiv_ccg->num_grids, | ||||
| &key, | &key, | ||||
| (void **)subdiv_ccg->grid_faces, | (void **)subdiv_ccg->grid_faces, | ||||
| subdiv_ccg->grid_flag_mats, | subdiv_ccg->grid_flag_mats, | ||||
| subdiv_ccg->grid_hidden); | subdiv_ccg->grid_hidden); | ||||
| pbvh_show_mask_set(pbvh, ob->sculpt->show_mask); | pbvh_show_mask_set(pbvh, ob->sculpt->show_mask); | ||||
| pbvh_show_face_sets_set(pbvh, false); | pbvh_show_face_sets_set(pbvh, ob->sculpt->show_face_sets); | ||||
| return pbvh; | return pbvh; | ||||
| } | } | ||||
| PBVH *BKE_sculpt_object_pbvh_ensure(Depsgraph *depsgraph, Object *ob) | PBVH *BKE_sculpt_object_pbvh_ensure(Depsgraph *depsgraph, Object *ob) | ||||
| { | { | ||||
| if (ob == NULL || ob->sculpt == NULL) { | if (ob == NULL || ob->sculpt == NULL) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||