Don't wipe if option is disabled
This commit is contained in:
parent
d089d2b2d4
commit
88e70a59c7
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ sub extrude_path {
|
||||||
$gcode .= $self->G1($line->[B], undef, $e * $line_length, $description);
|
$gcode .= $self->G1($line->[B], undef, $e * $line_length, $description);
|
||||||
}
|
}
|
||||||
$self->wipe_path(Slic3r::Polyline->new([ reverse @{$path->points} ]))
|
$self->wipe_path(Slic3r::Polyline->new([ reverse @{$path->points} ]))
|
||||||
if $Slic3r::Config->wipe;
|
if $self->extruder->wipe;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Slic3r::Config->cooling) {
|
if ($Slic3r::Config->cooling) {
|
||||||
|
@ -358,7 +358,7 @@ sub retract {
|
||||||
|
|
||||||
# wipe
|
# wipe
|
||||||
my $wipe_path;
|
my $wipe_path;
|
||||||
if ($Slic3r::Config->wipe && $self->wipe_path) {
|
if ($self->extruder->wipe && $self->wipe_path) {
|
||||||
$wipe_path = Slic3r::Polyline->new([ $self->last_pos, @{$self->wipe_path}[1..$#{$self->wipe_path}] ])
|
$wipe_path = Slic3r::Polyline->new([ $self->last_pos, @{$self->wipe_path}[1..$#{$self->wipe_path}] ])
|
||||||
->clip_start($self->extruder->scaled_wipe_distance);
|
->clip_start($self->extruder->scaled_wipe_distance);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue