More work for refactoring add_model() to add_model_object(). Tests pass

This commit is contained in:
Alessandro Ranellucci 2013-12-09 01:12:37 +01:00
parent 0339d5423d
commit f55e057504
6 changed files with 10 additions and 33 deletions

View file

@ -108,7 +108,7 @@ sub init_print {
$model_name = [$model_name] if ref($model_name) ne 'ARRAY';
for my $model (map model($_, %params), @$model_name) {
$model->arrange_objects($config);
$print->add_model($model);
$print->add_model_object($_) for @{$model->objects};
}
$print->validate;