Only enable ooze_prevention when print uses more than one extruder. #3334

This commit is contained in:
Alessandro Ranellucci 2017-03-12 11:02:34 +01:00
parent a193297b20
commit 795a3d06fa
2 changed files with 3 additions and 3 deletions

View File

@ -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)); #)

View File

@ -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);