Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_unwrap_ops.c
| Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | static ParamHandle *construct_param_handle_multi(Scene *scene, | ||||
| for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| Object *obedit = objects[ob_index]; | Object *obedit = objects[ob_index]; | ||||
| BMEditMesh *em = BKE_editmesh_from_object(obedit); | BMEditMesh *em = BKE_editmesh_from_object(obedit); | ||||
| BMesh *bm = em->bm; | BMesh *bm = em->bm; | ||||
| const int cd_loop_uv_offset = CustomData_get_offset(&bm->ldata, CD_MLOOPUV); | const int cd_loop_uv_offset = CustomData_get_offset(&bm->ldata, CD_MLOOPUV); | ||||
| if (cd_loop_uv_offset == -1) { | |||||
| continue; | |||||
| } | |||||
| BM_ITER_MESH_INDEX (efa, &iter, bm, BM_FACES_OF_MESH, i) { | BM_ITER_MESH_INDEX (efa, &iter, bm, BM_FACES_OF_MESH, i) { | ||||
| if ((BM_elem_flag_test(efa, BM_ELEM_HIDDEN)) || | if ((BM_elem_flag_test(efa, BM_ELEM_HIDDEN)) || | ||||
| (options->only_selected && BM_elem_flag_test(efa, BM_ELEM_SELECT) == 0)) { | (options->only_selected && BM_elem_flag_test(efa, BM_ELEM_SELECT) == 0)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (options->topology_from_uvs) { | if (options->topology_from_uvs) { | ||||
| ▲ Show 20 Lines • Show All 2,020 Lines • Show Last 20 Lines | |||||