Skip to content

Commit

Permalink
Path: use the actual values instead of absolute values when calculati…
Browse files Browse the repository at this point in the history
…ng distance
  • Loading branch information
m0n5t3r authored and yorikvanhavre committed May 27, 2017
1 parent 2c862f0 commit 6fbeead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathUtils.py
Expand Up @@ -526,7 +526,7 @@ def sqdist(a, b):
""" square Euclidean distance """
d = 0
for k in keys:
d += (abs(a[k]) - abs(b[k])) ** 2
d += (a[k] - b[k]) ** 2

return d

Expand Down

0 comments on commit 6fbeead

Please sign in to comment.