mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-08 14:34:04 -06:00
Make flow_spacing required for ExtrusionPath objects
This commit is contained in:
parent
37637c34f5
commit
be7e211bb6
5 changed files with 15 additions and 17 deletions
|
@ -90,12 +90,10 @@ sub fill_surface {
|
|||
$self->cache->{$cache_id},
|
||||
[ map @$_, $expolygon->offset_ex($overlap_distance) ],
|
||||
)};
|
||||
my $collection = Slic3r::ExtrusionPath::Collection->new(
|
||||
paths => [ map Slic3r::ExtrusionPath->pack(polyline => $_, role => -1), @paths ],
|
||||
);
|
||||
|
||||
return { flow_spacing => $params{flow_spacing} },
|
||||
map $_->polyline, $collection->shortest_path;
|
||||
map $_->polyline,
|
||||
Slic3r::Polyline::Collection->new(polylines => \@paths)->shortest_path;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue