Basic functionality of the Parts tab is complete

This commit is contained in:
Alessandro Ranellucci 2014-01-22 21:09:32 +01:00
parent 7387e60706
commit b5b8fb606f
4 changed files with 69 additions and 17 deletions

View file

@ -338,6 +338,10 @@ sub Closing {
foreach my $volume (@{$self->model_object->volumes}) {
if (defined $volume->material_id) {
my $config = $self->model_object->model->materials->{ $volume->material_id }->config;
# temporary hack for handling volumes added after the window was launched
$self->{mapping}{ $volume->material_id } //= 0;
$config->set('extruder', $self->{mapping}{ $volume->material_id }-1);
}
}