[Bf-blender-cvs] [9a52b30cc0d] master: UV: select face loops when in face-select mode

Campbell Barton noreply at git.blender.org
Fri Sep 18 08:05:29 CEST 2020


Commit: 9a52b30cc0dea448f24f6f0ce6a1aba423d4959a
Author: Campbell Barton
Date:   Fri Sep 18 16:04:43 2020 +1000
Branches: master
https://developer.blender.org/rB9a52b30cc0dea448f24f6f0ce6a1aba423d4959a

UV: select face loops when in face-select mode

Match edit-mesh behavior.

===================================================================

M	source/blender/editors/uvedit/uvedit_select.c

===================================================================

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)



More information about the Bf-blender-cvs mailing list