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:
authorCampbell Barton <ideasman42@gmail.com>2020-07-10 05:18:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-10 05:19:30 +0300
commitb0378440ce509f2be08404ff04f3b78adc43ded8 (patch)
treee741bc6e6fb359efd8c2903f3ce60b905caff23d
parent8f24ec2e26ac634789ed9027dcfe6d1cd14782a7 (diff)
Fix missing adjacent UV check for recent UV path select
Path selection could cross UV islands if the destination element was on an island boundary.
-rw-r--r--source/blender/bmesh/tools/bmesh_path_uv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/tools/bmesh_path_uv.c b/source/blender/bmesh/tools/bmesh_path_uv.c
index ce8b0a2e849..57a70645187 100644
--- a/source/blender/bmesh/tools/bmesh_path_uv.c
+++ b/source/blender/bmesh/tools/bmesh_path_uv.c
@@ -169,7 +169,7 @@ struct LinkNode *BM_mesh_calc_path_uv_vert(BMesh *bm,
while (!BLI_heapsimple_is_empty(heap)) {
l = BLI_heapsimple_pop_min(heap);
- if (l->v == l_dst->v) {
+ if ((l->v == l_dst->v) && BM_loop_uv_share_vert_check(l, l_dst, params->cd_loop_uv_offset)) {
break;
}
@@ -180,7 +180,7 @@ struct LinkNode *BM_mesh_calc_path_uv_vert(BMesh *bm,
}
}
- if (l->v == l_dst->v) {
+ if ((l->v == l_dst->v) && BM_loop_uv_share_vert_check(l, l_dst, params->cd_loop_uv_offset)) {
do {
BLI_linklist_prepend(&path, l);
} while ((l = loops_prev[BM_elem_index_get(l)]));