mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
no functional change. only return from one place for clarity
This commit is contained in:
@@ -252,7 +252,7 @@ sub nearest_point_index {
|
|||||||
if (!defined $distance || $d < $distance) {
|
if (!defined $distance || $d < $distance) {
|
||||||
$nearest_point_index = $i;
|
$nearest_point_index = $i;
|
||||||
$distance = $d;
|
$distance = $d;
|
||||||
return $i if $distance < epsilon;
|
last if $distance < epsilon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $nearest_point_index;
|
return $nearest_point_index;
|
||||||
|
|||||||
Reference in New Issue
Block a user