mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07: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) {
|
||||
$nearest_point_index = $i;
|
||||
$distance = $d;
|
||||
return $i if $distance < epsilon;
|
||||
last if $distance < epsilon;
|
||||
}
|
||||
}
|
||||
return $nearest_point_index;
|
||||
|
||||
Reference in New Issue
Block a user