Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/uvedit/uvedit_ops.c
| Show First 20 Lines • Show All 1,465 Lines • ▼ Show 20 Lines | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| MLoopUV *luv; | MLoopUV *luv; | ||||
| const int cd_loop_uv_offset = CustomData_get_offset(&em->bm->ldata, CD_MLOOPUV); | const int cd_loop_uv_offset = CustomData_get_offset(&em->bm->ldata, CD_MLOOPUV); | ||||
| if (ts->uv_flag & UV_SYNC_SELECTION) { | if (ts->uv_flag & UV_SYNC_SELECTION) { | ||||
| if (EDBM_mesh_hide(em, swap)) { | if (EDBM_mesh_hide(em, swap)) { | ||||
| EDBM_update_generic(ob->data, true, false); | EDBM_update_generic(ob->data, true, false); | ||||
| } | } | ||||
| return OPERATOR_FINISHED; | continue; | ||||
| } | } | ||||
| BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) { | BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) { | ||||
| int hide = 0; | int hide = 0; | ||||
| if (!uvedit_face_visible_test(scene, efa)) { | if (!uvedit_face_visible_test(scene, efa)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| /* note on tagging, selecting faces needs to be delayed so it doesn't select the verts and | /* note on tagging, selecting faces needs to be delayed so it doesn't select the verts and | ||||
| * confuse our checks on selected verts. */ | * confuse our checks on selected verts. */ | ||||
| /* call the mesh function if we are in mesh sync sel */ | /* call the mesh function if we are in mesh sync sel */ | ||||
| if (ts->uv_flag & UV_SYNC_SELECTION) { | if (ts->uv_flag & UV_SYNC_SELECTION) { | ||||
| if (EDBM_mesh_reveal(em, select)) { | if (EDBM_mesh_reveal(em, select)) { | ||||
| EDBM_update_generic(ob->data, true, false); | EDBM_update_generic(ob->data, true, false); | ||||
| } | } | ||||
| return OPERATOR_FINISHED; | continue; | ||||
| } | } | ||||
| if (use_face_center) { | if (use_face_center) { | ||||
| if (em->selectmode == SCE_SELECT_FACE) { | if (em->selectmode == SCE_SELECT_FACE) { | ||||
| BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) { | BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) { | ||||
| BM_elem_flag_disable(efa, BM_ELEM_TAG); | BM_elem_flag_disable(efa, BM_ELEM_TAG); | ||||
| if (!BM_elem_flag_test(efa, BM_ELEM_HIDDEN) && !BM_elem_flag_test(efa, BM_ELEM_SELECT)) { | if (!BM_elem_flag_test(efa, BM_ELEM_HIDDEN) && !BM_elem_flag_test(efa, BM_ELEM_SELECT)) { | ||||
| BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) { | BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) { | ||||
| luv = BM_ELEM_CD_GET_VOID_P(l, cd_loop_uv_offset); | luv = BM_ELEM_CD_GET_VOID_P(l, cd_loop_uv_offset); | ||||
| ▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines | |||||