Use AMF object and volume metadata for handling per-object and per-volume settings

This commit is contained in:
Alessandro Ranellucci 2014-07-11 20:09:01 +02:00
parent 4d67f902b6
commit f82a8475a1
7 changed files with 47 additions and 27 deletions

View file

@ -186,8 +186,9 @@ sub add_model_object {
my $config = Slic3r::Config::PrintRegion->new;
$config->apply($self->default_region_config);
# override the defaults with per-object config and then with per-material config
# override the defaults with per-object config and then with per-material and per-volume configs
$config->apply_dynamic($object_config);
$config->apply_dynamic($volume->config);
if (defined $volume->material_id) {
my $material_config = $volume->material->config->clone;