Don't autoassign extruders to material config. #2522

This commit is contained in:
Alessandro Ranellucci 2015-01-16 16:35:35 +01:00
parent e749f6040f
commit b77d35f6f1

View file

@ -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) = @_;
@ -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);
}
}
}