mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Bugfix: sparse and wrong infill was generated for objects with null fill density. Also fixed a division by zero.
This commit is contained in:
parent
22551b64de
commit
4cdd0f6fd0
4 changed files with 30 additions and 12 deletions
|
@ -89,7 +89,7 @@ sub extrude {
|
|||
my $distance_from_last_pos = $self->last_pos->distance_to($path->points->[0]) * $Slic3r::resolution;
|
||||
my $distance_threshold = $Slic3r::retract_before_travel;
|
||||
$distance_threshold = 2 * $Slic3r::flow_width / $Slic3r::fill_density * sqrt(2)
|
||||
if $description =~ /fill/;
|
||||
if $Slic3r::fill_density > 0 && $description =~ /fill/;
|
||||
|
||||
if ($distance_from_last_pos >= $distance_threshold) {
|
||||
$gcode .= $self->retract(travel_to => $path->points->[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue