mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Refactor bridge flow to Slic3r::Flow::Bridge class
This commit is contained in:
parent
d00c2882c4
commit
a9090688f9
6 changed files with 29 additions and 18 deletions
|
@ -135,7 +135,7 @@ sub make_fill {
|
|||
$filler = $Slic3r::Config->solid_fill_pattern;
|
||||
if ($is_bridge) {
|
||||
$filler = 'rectilinear';
|
||||
$flow_spacing = $layer->infill_flow->bridge_spacing;
|
||||
$flow_spacing = $layer->extruders->{infill}->bridge_flow->spacing;
|
||||
} elsif ($surface->surface_type == S_TYPE_INTERNALSOLID) {
|
||||
$filler = 'rectilinear';
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ sub make_fill {
|
|||
my $params = shift @paths;
|
||||
|
||||
# ugly hack(tm) to get the right amount of flow (GCode.pm should be fixed)
|
||||
$params->{flow_spacing} = $layer->infill_flow->bridge_width if $is_bridge;
|
||||
$params->{flow_spacing} = $layer->extruders->{infill}->bridge_flow->width if $is_bridge;
|
||||
|
||||
# save into layer
|
||||
next unless @paths;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue