mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-21 20:18:17 +08:00
Yet other things not changed when refactored. #163
This commit is contained in:
parent
b605381132
commit
a3a9cf5749
@ -61,7 +61,7 @@ sub fill_surface {
|
||||
# clip the path to avoid the extruder to get exactly on the first point of the loop
|
||||
$path->clip_end(scale $Slic3r::nozzle_diameter / 2);
|
||||
|
||||
push @paths, $path if @{$path->points};
|
||||
push @paths, $path->points if @{$path->points};
|
||||
}
|
||||
|
||||
return { flow_spacing => $flow_spacing }, @paths;
|
||||
|
@ -43,7 +43,7 @@ sub fill_surface {
|
||||
my $polyline = Slic3r::Polyline->new([
|
||||
map [ map {$_*$distance_between_lines} $path->n_to_xy($_) ], @n,
|
||||
]);
|
||||
return {} if !@{$polyline->points};
|
||||
return {} if !@$polyline;
|
||||
|
||||
$self->process_polyline($polyline, $bounding_box);
|
||||
|
||||
@ -58,8 +58,6 @@ sub fill_surface {
|
||||
);
|
||||
}
|
||||
|
||||
@paths = map $_, @paths;
|
||||
|
||||
# paths must be rotated back
|
||||
$self->rotate_points_back(\@paths, $rotate_vector);
|
||||
|
||||
|
@ -74,7 +74,7 @@ sub fill_surface {
|
||||
next;
|
||||
}
|
||||
}
|
||||
push @paths, [@{$path->points}];
|
||||
push @paths, $path->points;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user