Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-10-05 23:25:17 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-10-05 23:25:17 +0400
commit5a07137def14d0728bf48cce21eb86054a9603d2 (patch)
tree8f00ac53c70c2a386c01ffd7399a1b86a3531adc /lib/Slic3r/Extruder.pm
parenta1d518f1a2815be8525c18596e14f450430dee10 (diff)
Fixes to retraction and skirt
Diffstat (limited to 'lib/Slic3r/Extruder.pm')
-rw-r--r--lib/Slic3r/Extruder.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm
index b155d6e6e..3c8cd2bb3 100644
--- a/lib/Slic3r/Extruder.pm
+++ b/lib/Slic3r/Extruder.pm
@@ -76,7 +76,7 @@ sub extrude {
}
# retract
- if (Slic3r::Geometry::distance_between_points($self->last_pos, $path->points->[0]->p)
+ if (Slic3r::Geometry::distance_between_points($self->last_pos, $path->points->[0]->p) * $Slic3r::resolution
>= $Slic3r::retract_before_travel) {
$gcode .= $self->retract;
}
@@ -105,7 +105,6 @@ sub extrude {
sub retract {
my $self = shift;
return "" unless $Slic3r::retract_length > 0
- && $self->extrusion_distance > 0
&& !$self->retracted;
$self->retracted(1);