Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/layer_utils.c
| Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| bool BKE_view_layer_filter_edit_mesh_has_uvs(const Object *ob, void *UNUSED(user_data)) | bool BKE_view_layer_filter_edit_mesh_has_uvs(const Object *ob, void *UNUSED(user_data)) | ||||
| { | { | ||||
| if (ob->type == OB_MESH) { | if (ob->type == OB_MESH) { | ||||
| const Mesh *me = ob->data; | const Mesh *me = ob->data; | ||||
| const BMEditMesh *em = me->edit_mesh; | const BMEditMesh *em = me->edit_mesh; | ||||
| if (em != NULL) { | if (em != NULL) { | ||||
| if (CustomData_get_offset(&em->bm->ldata, CD_MLOOPUV) != -1) { | if (CustomData_has_layer(&em->bm->ldata, CD_PROP_FLOAT2)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool BKE_view_layer_filter_edit_mesh_has_edges(const Object *ob, void *UNUSED(user_data)) | bool BKE_view_layer_filter_edit_mesh_has_edges(const Object *ob, void *UNUSED(user_data)) | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||