mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Keep bridge flow unchanged even with the new overlapping spacing
This commit is contained in:
parent
8d557bee8c
commit
427e3c1720
2 changed files with 17 additions and 2 deletions
|
@ -135,8 +135,7 @@ sub make_fill {
|
|||
$filler = $Slic3r::Config->solid_fill_pattern;
|
||||
if ($is_bridge) {
|
||||
$filler = 'rectilinear';
|
||||
my $width = sqrt($Slic3r::Config->bridge_flow_ratio * ($layer->infill_flow->nozzle_diameter**2));
|
||||
$flow_spacing = $width + &Slic3r::OVERLAP_FACTOR * ($width * PI / 4 - $width); # this should be moved to Flow.pm
|
||||
$flow_spacing = $layer->infill_flow->bridge_spacing;
|
||||
} elsif ($surface->surface_type == S_TYPE_INTERNALSOLID) {
|
||||
$filler = 'rectilinear';
|
||||
}
|
||||
|
@ -157,6 +156,9 @@ 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;
|
||||
|
||||
# save into layer
|
||||
next unless @paths;
|
||||
push @fills, Slic3r::ExtrusionPath::Collection->new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue