diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-01-17 12:36:42 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-01-17 12:36:42 +0300 |
commit | 89f0c60fc850264f9d0d2637fa8565b37843260e (patch) | |
tree | 5a46fa97f0efc987d40f333fd3a2e49d1ebef0c0 /t/multi.t | |
parent | b77d35f6f172938c1e2d92ce37629881b0e287a8 (diff) |
Adapt t/multi.t to new behavior of auto_assign_extruders()
Diffstat (limited to 't/multi.t')
-rw-r--r-- | t/multi.t | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -169,6 +169,7 @@ use Slic3r::Test; { my $model = stacked_cubes(); + my $object = $model->objects->[0]; my $config = Slic3r::Config->new_from_defaults; $config->set('layer_height', 0.4); @@ -176,8 +177,8 @@ use Slic3r::Test; $config->set('skirts', 0); my $print = Slic3r::Test::init_print($model, config => $config); - is $model->get_material('lower')->config->extruder, 1, 'auto_assign_extruders() assigned correct extruder to first volume'; - is $model->get_material('upper')->config->extruder, 2, 'auto_assign_extruders() assigned correct extruder to second volume'; + is $object->volumes->[0]->config->extruder, 1, 'auto_assign_extruders() assigned correct extruder to first volume'; + is $object->volumes->[1]->config->extruder, 2, 'auto_assign_extruders() assigned correct extruder to second volume'; my $tool = undef; my %T0 = my %T1 = (); # Z => 1 |