Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract_mesh.c
| Show First 20 Lines • Show All 2,467 Lines • ▼ Show 20 Lines | static void mesh_render_data_loop_flag(const MeshRenderData *mr, | ||||
| } | } | ||||
| MLoopUV *luv = BM_ELEM_CD_GET_VOID_P(loop, cd_ofs); | MLoopUV *luv = BM_ELEM_CD_GET_VOID_P(loop, cd_ofs); | ||||
| if (luv != NULL && (luv->flag & MLOOPUV_PINNED)) { | if (luv != NULL && (luv->flag & MLOOPUV_PINNED)) { | ||||
| eattr->v_flag |= VFLAG_VERT_UV_PINNED; | eattr->v_flag |= VFLAG_VERT_UV_PINNED; | ||||
| } | } | ||||
| if (uvedit_uv_select_test_ex(mr->toolsettings, loop, cd_ofs)) { | if (uvedit_uv_select_test_ex(mr->toolsettings, loop, cd_ofs)) { | ||||
| eattr->v_flag |= VFLAG_VERT_UV_SELECT; | eattr->v_flag |= VFLAG_VERT_UV_SELECT; | ||||
| } | } | ||||
| /* UV face flags. See `mesh_render_data_face_flag`. */ | |||||
| BMFace *efa = loop->f; | |||||
jbakker: we use `efa` for edit faces | |||||
| if (efa == mr->efa_act_uv) { | |||||
| eattr->v_flag |= VFLAG_FACE_UV_ACTIVE; | |||||
| } | |||||
| if (uvedit_face_select_test_ex(mr->toolsettings, efa, cd_ofs)) { | |||||
| eattr->v_flag |= VFLAG_FACE_UV_SELECT; | |||||
| } | |||||
| } | } | ||||
| static void mesh_render_data_loop_edge_flag(const MeshRenderData *mr, | static void mesh_render_data_loop_edge_flag(const MeshRenderData *mr, | ||||
| BMLoop *loop, | BMLoop *loop, | ||||
| const int cd_ofs, | const int cd_ofs, | ||||
| EditLoopData *eattr) | EditLoopData *eattr) | ||||
| { | { | ||||
| if (cd_ofs == -1) { | if (cd_ofs == -1) { | ||||
| ▲ Show 20 Lines • Show All 2,058 Lines • Show Last 20 Lines | |||||
we use efa for edit faces