From d0bad0a3fc02a24b99e12cc2b6b6f9a5ae12334e Mon Sep 17 00:00:00 2001 From: Sabin Iacob Date: Thu, 25 May 2017 22:46:06 +0300 Subject: [PATCH] Path: re-add the fix from https://github.com/FreeCAD/FreeCAD/pull/725 --- src/Mod/Path/PathScripts/PathUtils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Path/PathScripts/PathUtils.py b/src/Mod/Path/PathScripts/PathUtils.py index 29b677bd98..d4f80fffb3 100644 --- a/src/Mod/Path/PathScripts/PathUtils.py +++ b/src/Mod/Path/PathScripts/PathUtils.py @@ -553,6 +553,7 @@ def sort_jobs(locations, keys, attractors=[]): zero = defaultdict(lambda: 0) out.append(find_closest(locations, zero, sqdist)) + locations.remove(out[-1]) while locations: closest = find_closest(locations, out[-1], sqdist)