From 795a3d06fa48369631649780dbb7b18aac74dec3 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 12 Mar 2017 11:02:34 +0100 Subject: [PATCH] Only enable ooze_prevention when print uses more than one extruder. #3334 --- lib/Slic3r/Print/GCode.pm | 4 ++-- xs/src/libslic3r/PrintConfig.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Slic3r/Print/GCode.pm b/lib/Slic3r/Print/GCode.pm index cf780e54b..b851f5242 100644 --- a/lib/Slic3r/Print/GCode.pm +++ b/lib/Slic3r/Print/GCode.pm @@ -144,12 +144,12 @@ sub export { } # calculate wiping points if needed - if ($self->config->ooze_prevention) { + if ($self->config->ooze_prevention && (my @extruders = @{$self->print->extruders}) > 1) { my @skirt_points = map @$_, map @$_, @{$self->print->skirt}; if (@skirt_points) { my $outer_skirt = convex_hull(\@skirt_points); my @skirts = (); - foreach my $extruder_id (@{$self->print->extruders}) { + foreach my $extruder_id (@extruders) { my $extruder_offset = $self->config->get_at('extruder_offset', $extruder_id); push @skirts, my $s = $outer_skirt->clone; $s->translate(-scale($extruder_offset->x), -scale($extruder_offset->y)); #) diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp index eb51b6637..a91816d5f 100644 --- a/xs/src/libslic3r/PrintConfig.cpp +++ b/xs/src/libslic3r/PrintConfig.cpp @@ -789,7 +789,7 @@ PrintConfigDef::PrintConfigDef() def = this->add("ooze_prevention", coBool); def->label = "Enable"; - def->tooltip = "This option will drop the temperature of the inactive extruders to prevent oozing. It will enable a tall skirt automatically and move extruders outside such skirt when changing temperatures."; + def->tooltip = "During multi-extruder prints, this option will drop the temperature of the inactive extruders to prevent oozing. It will enable a tall skirt automatically and move extruders outside such skirt when changing temperatures."; def->cli = "ooze-prevention!"; def->default_value = new ConfigOptionBool(false);