diff options
Diffstat (limited to 'lib/Slic3r/Geometry.pm')
-rw-r--r-- | lib/Slic3r/Geometry.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Slic3r/Geometry.pm b/lib/Slic3r/Geometry.pm index f81e67122..b8a9d4091 100644 --- a/lib/Slic3r/Geometry.pm +++ b/lib/Slic3r/Geometry.pm @@ -124,6 +124,7 @@ sub nearest_point { if (!defined $distance || $d < $distance) { $nearest_point = $p; $distance = $d; + return $p if $distance < epsilon; } } return $nearest_point; |