diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-18 09:04:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-18 09:04:43 +0300 |
commit | 9a52b30cc0dea448f24f6f0ce6a1aba423d4959a (patch) | |
tree | d325cabbfb255626eec1a3d264df40eea2f9f3c7 /source/blender | |
parent | 338ebea53e380d0bfcc49be580c19cc6024d5122 (diff) |
UV: select face loops when in face-select mode
Match edit-mesh behavior.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_select.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c index baef2eb0d4b..a6b5aff4a44 100644 --- a/source/blender/editors/uvedit/uvedit_select.c +++ b/source/blender/editors/uvedit/uvedit_select.c @@ -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) |