Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/pbvh.c
| Show First 20 Lines • Show All 2,952 Lines • ▼ Show 20 Lines | bool pbvh_has_mask(PBVH *bvh) | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool pbvh_has_face_sets(PBVH *bvh) | bool pbvh_has_face_sets(PBVH *bvh) | ||||
| { | { | ||||
| switch (bvh->type) { | switch (bvh->type) { | ||||
| case PBVH_GRIDS: | case PBVH_GRIDS: | ||||
| return false; | return (bvh->pdata && CustomData_get_layer(bvh->pdata, CD_SCULPT_FACE_SETS)); | ||||
| case PBVH_FACES: | case PBVH_FACES: | ||||
| return (bvh->pdata && CustomData_get_layer(bvh->pdata, CD_SCULPT_FACE_SETS)); | return (bvh->pdata && CustomData_get_layer(bvh->pdata, CD_SCULPT_FACE_SETS)); | ||||
| case PBVH_BMESH: | case PBVH_BMESH: | ||||
| return false; | return false; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||