Replace multitude of Extruder fields with querying a PrintConfig object by id.
This commit is contained in:
parent
b319dc9361
commit
2565d80679
7 changed files with 38 additions and 140 deletions
lib/Slic3r
|
@ -53,7 +53,7 @@ sub set_extruders {
|
|||
my ($self, $extruder_ids) = @_;
|
||||
|
||||
foreach my $i (@$extruder_ids) {
|
||||
$self->extruders->{$i} = my $e = Slic3r::Extruder->new_from_config($self->print_config, $i);
|
||||
$self->extruders->{$i} = my $e = Slic3r::Extruder->new($i, $self->print_config);
|
||||
$self->enable_wipe(1) if $e->wipe;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue