diff options
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_path.c | 9 |
1 files changed, 3 insertions, 6 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) || |