mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 02:19:01 +08:00
Only enable ooze_prevention when print uses more than one extruder. #3334
This commit is contained in:
parent
a193297b20
commit
795a3d06fa
@ -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)); #)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user