mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 19:19:02 +08:00
no functional change. only return from one place for clarity
This commit is contained in:
parent
da0e67a891
commit
e8ca1e59a6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user