mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-22 20:48:29 +08:00
Bugfix: couldn't set fill density to zero
This commit is contained in:
parent
7628c83e9f
commit
a7d5e643ae
@ -74,7 +74,7 @@ sub extrude {
|
|||||||
# specified by the user *and* to the maximum distance between infill lines
|
# specified by the user *and* to the maximum distance between infill lines
|
||||||
my $distance_from_last_pos = Slic3r::Geometry::distance_between_points($self->last_pos, $path->points->[0]->p) * $Slic3r::resolution;
|
my $distance_from_last_pos = Slic3r::Geometry::distance_between_points($self->last_pos, $path->points->[0]->p) * $Slic3r::resolution;
|
||||||
if ($distance_from_last_pos >= $Slic3r::retract_before_travel
|
if ($distance_from_last_pos >= $Slic3r::retract_before_travel
|
||||||
&& $distance_from_last_pos >= $Slic3r::flow_width / $Slic3r::fill_density * sqrt(2)) {
|
&& ($Slic3r::fill_density == 0 || $distance_from_last_pos >= $Slic3r::flow_width / $Slic3r::fill_density * sqrt(2))) {
|
||||||
$gcode .= $self->retract;
|
$gcode .= $self->retract;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user