Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_select.cc
| Show First 20 Lines • Show All 3,205 Lines • ▼ Show 20 Lines | static int select_linked_delimit_default_from_op(wmOperator *op, const int select_mode) | ||||
| } | } | ||||
| return delimit; | return delimit; | ||||
| } | } | ||||
| #endif | #endif | ||||
| static void select_linked_delimit_validate(BMesh *bm, int *delimit) | static void select_linked_delimit_validate(BMesh *bm, int *delimit) | ||||
| { | { | ||||
| if ((*delimit) & BMO_DELIM_UV) { | if ((*delimit) & BMO_DELIM_UV) { | ||||
| if (!CustomData_has_layer(&bm->ldata, CD_MLOOPUV)) { | if (!CustomData_has_layer(&bm->ldata, CD_PROP_FLOAT2)) { | ||||
| (*delimit) &= ~BMO_DELIM_UV; | (*delimit) &= ~BMO_DELIM_UV; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void select_linked_delimit_begin(BMesh *bm, int delimit) | static void select_linked_delimit_begin(BMesh *bm, int delimit) | ||||
| { | { | ||||
| DelimitData delimit_data = {0}; | DelimitData delimit_data = {0}; | ||||
| if (delimit & BMO_DELIM_UV) { | if (delimit & BMO_DELIM_UV) { | ||||
| delimit_data.cd_loop_type = CD_MLOOPUV; | delimit_data.cd_loop_type = CD_PROP_FLOAT2; | ||||
| delimit_data.cd_loop_offset = CustomData_get_offset(&bm->ldata, delimit_data.cd_loop_type); | delimit_data.cd_loop_offset = CustomData_get_offset(&bm->ldata, delimit_data.cd_loop_type); | ||||
| if (delimit_data.cd_loop_offset == -1) { | if (delimit_data.cd_loop_offset == -1) { | ||||
| delimit &= ~BMO_DELIM_UV; | delimit &= ~BMO_DELIM_UV; | ||||
| } | } | ||||
| } | } | ||||
| /* Shouldn't need to allocated BMO flags here (sigh). */ | /* Shouldn't need to allocated BMO flags here (sigh). */ | ||||
| BM_mesh_elem_toolflags_ensure(bm); | BM_mesh_elem_toolflags_ensure(bm); | ||||
| ▲ Show 20 Lines • Show All 2,124 Lines • Show Last 20 Lines | |||||