Skip to content

Commit

Permalink
Don't autoassign extruders to material config. #2522
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Jan 16, 2015
1 parent e749f60 commit b77d35f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Slic3r/Print.pm
Expand Up @@ -443,7 +443,7 @@ sub expanded_output_filepath {
}

# This method assigns extruders to the volumes having a material
# but not having extruders set in the material config.
# but not having extruders set in the volume config.
sub auto_assign_extruders {
my ($self, $model_object) = @_;

Expand All @@ -454,10 +454,8 @@ sub auto_assign_extruders {
foreach my $i (0..$#{$model_object->volumes}) {
my $volume = $model_object->volumes->[$i];
if ($volume->material_id ne '') {
my $material = $model_object->model->get_material($volume->material_id);
my $config = $material->config;
my $extruder_id = $i + 1;
$config->set_ifndef('extruder', $extruder_id);
$volume->config->set_ifndef('extruder', $extruder_id);
}
}
}
Expand Down

0 comments on commit b77d35f

Please sign in to comment.