diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-11-21 15:37:12 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-11-21 15:37:12 +0400 |
commit | d6ed9c6f345a57fcc0f3b7cb6e48a81f1c107591 (patch) | |
tree | 8cbd17de84cb7c08e4b806d521c3485306cd2ffd /lib/Slic3r/Extruder.pm | |
parent | ed9b4e829cd43dd13808327a3fe46538fec43467 (diff) |
Disable retraction when moving over infill space. #29
Diffstat (limited to 'lib/Slic3r/Extruder.pm')
-rw-r--r-- | lib/Slic3r/Extruder.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index b1fc895b2..ed537e3bf 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -8,6 +8,7 @@ has 'z' => (is => 'rw', default => sub {0} ); has 'flow_ratio' => (is => 'rw', default => sub {1}); has 'extrusion_distance' => (is => 'rw', default => sub {0} ); +has 'enable_retraction' => (is => 'rw', default => sub {1} ); has 'retracted' => (is => 'rw', default => sub {1} ); # this spits out some plastic at start has 'lifted' => (is => 'rw', default => sub {0} ); has 'last_pos' => (is => 'rw', default => sub { [0,0] } ); @@ -123,7 +124,8 @@ sub retract { my $self = shift; my %params = @_; - return "" unless $Slic3r::retract_length > 0 + return "" unless $self->enable_retraction + && $Slic3r::retract_length > 0 && !$self->retracted; # prepare moves |