Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhartha Jejurkar <sidd017>2021-03-27 07:58:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-27 07:58:31 +0300
commit9f3d41d4eee6814fa4b6b89e75caeba1953ea6a7 (patch)
treea82c74de629745bc6a6ee9687c3e269c7ac91090 /source/blender/editors/mesh/editmesh_utils.c
parenta6ec2de96ac5ba3a546ad0259b6993bb6d6a5105 (diff)
Fix T86924: UV Sync selection breaks individual origin calculation
Use uvedit_uv_select_test which accounts for UV Sync selection. Ref D10830
Diffstat (limited to 'source/blender/editors/mesh/editmesh_utils.c')
-rw-r--r--source/blender/editors/mesh/editmesh_utils.c4
1 files changed, 2 insertions, 2 deletions
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). */