diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-11 15:34:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-11 15:34:22 +0300 |
commit | 63c463ac458fda7a14f8e9f217c5cba7426aa4a8 (patch) | |
tree | 93b3dc763e80f0cc8520413e36e0ccf3605416c5 /source/blender/editors/uvedit/uvedit_ops.c | |
parent | 1cd65b274b69990c36187148f873497f282cf5a9 (diff) |
Docs: improve comments
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_ops.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index 883671949c8..dcf1d04ffb3 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -4519,7 +4519,9 @@ static int uv_select_overlap(bContext *C, const bool extend) const float(*t1)[2] = o_a->tri; const float(*t2)[2] = o_b->tri; float vi[2]; - bool result = + bool result = ( + /* Don't use 'isect_tri_tri_v2' here + * because it's important to ignore overlap at end-points. */ isect_seg_seg_v2_point_ex(t1[0], t1[1], t2[0], t2[1], endpoint_bias, vi) == 1 || isect_seg_seg_v2_point_ex(t1[0], t1[1], t2[1], t2[2], endpoint_bias, vi) == 1 || isect_seg_seg_v2_point_ex(t1[0], t1[1], t2[2], t2[0], endpoint_bias, vi) == 1 || @@ -4529,7 +4531,7 @@ static int uv_select_overlap(bContext *C, const bool extend) isect_seg_seg_v2_point_ex(t1[2], t1[0], t2[0], t2[1], endpoint_bias, vi) == 1 || isect_seg_seg_v2_point_ex(t1[2], t1[0], t2[1], t2[2], endpoint_bias, vi) == 1 || isect_point_tri_v2(t1[0], t2[0], t2[1], t2[2]) != 0 || - isect_point_tri_v2(t2[0], t1[0], t1[1], t1[2]) != 0; + isect_point_tri_v2(t2[0], t1[0], t1[1], t1[2]) != 0); if (result) { uvedit_face_select_enable(scene, em_a, face_a, false, cd_loop_uv_offset_a); |