diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-07 20:54:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-07 20:54:59 +0300 |
commit | e0452cc5a9861201ee4bc84312aaea076346a433 (patch) | |
tree | b832c3bcecda5cecfba8fea888678f163410555b /release/scripts/startup/bl_operators/bmesh/find_adjacent.py | |
parent | 4db3b4da463538e1be2a36331653524d7f988188 (diff) |
Fix edit-mesh select next
Last change introduced error, return would stop looking over candidates.
D3137 by @nBurn
Diffstat (limited to 'release/scripts/startup/bl_operators/bmesh/find_adjacent.py')
-rw-r--r-- | release/scripts/startup/bl_operators/bmesh/find_adjacent.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/bmesh/find_adjacent.py b/release/scripts/startup/bl_operators/bmesh/find_adjacent.py index 80de10924fd..1555f465aa5 100644 --- a/release/scripts/startup/bl_operators/bmesh/find_adjacent.py +++ b/release/scripts/startup/bl_operators/bmesh/find_adjacent.py @@ -203,6 +203,7 @@ def find_next(ele_dst, ele_src): candidates = elems_depth_search(ele_dst, depth_src_a, other_edges_over_edge) candidates = elems_depth_search(ele_dst, depth_src_b, other_edges_over_face, candidates) candidates.discard(ele_src) + candidates.discard(ele_dst) if not candidates: return [] @@ -218,7 +219,7 @@ def find_next(ele_dst, ele_src): depth_test_a = elems_depth_measure(ele_dst, ele_test, other_edges_over_edge) depth_test_b = elems_depth_measure(ele_dst, ele_test, other_edges_over_face) if depth_test_a is None or depth_test_b is None: - return [] + continue depth_test = tuple(zip(depth_test_a, depth_test_b)) # square so a few high values win over many small ones diff_test = sum((abs(a[0] - b[0]) ** 2) + @@ -242,7 +243,7 @@ def find_next(ele_dst, ele_src): depth_test_a = elems_depth_measure(ele_src, ele_test, other_edges_over_edge) depth_test_b = elems_depth_measure(ele_src, ele_test, other_edges_over_face) if depth_test_a is None or depth_test_b is None: - return [] + continue depth_accum_test = ( sum(depth_test_a) + sum(depth_test_b)) |