diff options
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_path.c | 9 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c index 6fd0ee83b6c..06c41b78c37 100644 --- a/source/blender/editors/mesh/editmesh_path.c +++ b/source/blender/editors/mesh/editmesh_path.c @@ -239,8 +239,7 @@ static void mouse_mesh_shortest_path_vert(Scene *UNUSED(scene), } } while ((node = node->next)); - /* We need to start as if just *after* a 'skip' block... */ - int depth = op_params->interval_params.skip; + int depth = -1; node = path; do { if ((is_path_ordered == false) || @@ -430,8 +429,7 @@ static void mouse_mesh_shortest_path_edge(Scene *scene, } } while ((node = node->next)); - /* We need to start as if just *after* a 'skip' block... */ - int depth = op_params->interval_params.skip; + int depth = -1; node = path; do { if ((is_path_ordered == false) || @@ -561,8 +559,7 @@ static void mouse_mesh_shortest_path_face(Scene *UNUSED(scene), } } while ((node = node->next)); - /* We need to start as if just *after* a 'skip' block... */ - int depth = op_params->interval_params.skip; + int depth = -1; node = path; do { if ((is_path_ordered == false) || diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index c0bd9e9f14c..53b4efbd968 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -3734,7 +3734,7 @@ static void walker_deselect_nth(BMEditMesh *em, if (!BM_elem_flag_test(ele, BM_ELEM_TAG)) { /* Deselect elements that aren't at "nth" depth from active */ const int depth = BMW_current_depth(&walker) - 1; - if (WM_operator_properties_checker_interval_test(op_params, depth)) { + if (!WM_operator_properties_checker_interval_test(op_params, depth)) { BM_elem_select_set(bm, ele, false); } BM_elem_flag_enable(ele, BM_ELEM_TAG); |