Only expand shortcut options in StaticConfig objects. This way we can keep a default extruder value in the parts panel

This commit is contained in:
Alessandro Ranellucci 2014-03-22 20:12:54 +01:00
parent 61db9530d9
commit 21e6de0e59
7 changed files with 116 additions and 26 deletions

View file

@ -1090,10 +1090,11 @@ sub auto_assign_extruders {
my $material = $model_object->model->materials->{ $volume->material_id };
my $config = $material->config;
my $extruder_id = $i + 1;
$config->set_ifndef('perimeter_extruder', $extruder_id);
$config->set_ifndef('infill_extruder', $extruder_id);
$config->set_ifndef('support_material_extruder', $extruder_id);
$config->set_ifndef('support_material_interface_extruder', $extruder_id);
$config->set_ifndef('extruder', $extruder_id);
#$config->set_ifndef('perimeter_extruder', $extruder_id);
#$config->set_ifndef('infill_extruder', $extruder_id);
#$config->set_ifndef('support_material_extruder', $extruder_id);
#$config->set_ifndef('support_material_interface_extruder', $extruder_id);
}
}
}