UV: select face loops when in face-select mode

Match edit-mesh behavior.
This commit is contained in:
Campbell Barton 2020-09-18 16:04:43 +10:00
parent 338ebea53e
commit 9a52b30cc0
Notes: blender-bot 2023-02-14 06:21:59 +01:00
Referenced by issue #81065, Applying Subdivision/Multires Modifier De-merges UV's
1 changed files with 9 additions and 1 deletions

View File

@ -2248,7 +2248,15 @@ static int uv_select_loop_exec(bContext *C, wmOperator *op)
RNA_float_get_array(op->ptr, "location", co);
const bool extend = RNA_boolean_get(op->ptr, "extend");
return uv_mouse_select_loop_generic(C, co, extend, UV_LOOP_SELECT);
Scene *scene = CTX_data_scene(C);
enum eUVLoopGenericType type = UV_LOOP_SELECT;
if (ED_uvedit_select_mode_get(scene) == UV_SELECT_FACE) {
/* For now ring-select and face-loop is the same thing,
* if we support real edge selection this will no longer be the case. */
type = UV_RING_SELECT;
}
return uv_mouse_select_loop_generic(C, co, extend, type);
}
static int uv_select_loop_invoke(bContext *C, wmOperator *op, const wmEvent *event)