[Bf-blender-cvs] [9f3d41d4eee] master: Fix T86924: UV Sync selection breaks individual origin calculation

Siddhartha Jejurkar noreply at git.blender.org
Sat Mar 27 06:01:22 CET 2021


Commit: 9f3d41d4eee6814fa4b6b89e75caeba1953ea6a7
Author: Siddhartha Jejurkar
Date:   Sat Mar 27 15:58:31 2021 +1100
Branches: master
https://developer.blender.org/rB9f3d41d4eee6814fa4b6b89e75caeba1953ea6a7

Fix T86924: UV Sync selection breaks individual origin calculation

Use uvedit_uv_select_test which accounts for UV Sync selection.

Ref D10830

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

M	source/blender/editors/mesh/editmesh_utils.c

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

diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c
index 94f386e08d5..2e98f0558f3 100644
--- a/source/blender/editors/mesh/editmesh_utils.c
+++ b/source/blender/editors/mesh/editmesh_utils.c
@@ -785,7 +785,7 @@ UvElementMap *BM_uv_element_map_create(BMesh *bm,
       l = v->l;
       luv = BM_ELEM_CD_GET_VOID_P(l, cd_loop_uv_offset);
       uv = luv->uv;
-      uv_vert_sel = luv->flag & MLOOPUV_VERTSEL;
+      uv_vert_sel = uvedit_uv_select_test(scene, l, cd_loop_uv_offset);
 
       lastv = NULL;
       iterv = vlist;
@@ -796,7 +796,7 @@ UvElementMap *BM_uv_element_map_create(BMesh *bm,
         l = iterv->l;
         luv = BM_ELEM_CD_GET_VOID_P(l, cd_loop_uv_offset);
         uv2 = luv->uv;
-        uv2_vert_sel = luv->flag & MLOOPUV_VERTSEL;
+        uv2_vert_sel = uvedit_uv_select_test(scene, l, cd_loop_uv_offset);
 
         /* Check if the uv loops share the same selection state (if not, they are not connected as
          * they have been ripped or other edit commands have separated them). */



More information about the Bf-blender-cvs mailing list