Fixed regression causing variable layer heights to be ignored. #2136

Conflicts:

	xs/xsp/my.map
This commit is contained in:
Alessandro Ranellucci 2014-07-01 19:49:15 +02:00
parent 65dbf75a54
commit d9dc2fda00
3 changed files with 15 additions and 8 deletions

View file

@ -4,7 +4,7 @@ use strict;
use warnings;
use Slic3r::XS;
use Test::More tests => 3;
use Test::More tests => 4;
{
my $model = Slic3r::Model->new;
@ -13,6 +13,10 @@ use Test::More tests => 3;
isa_ok $object->origin_translation, 'Slic3r::Pointf::Ref';
$object->origin_translation->translate(10,0);
is_deeply \@{$object->origin_translation}, [10,0], 'origin_translation is modified by ref';
my $lhr = [ [ 5, 10, 0.1 ] ];
$object->set_layer_height_ranges($lhr);
is_deeply $object->layer_height_ranges, $lhr, 'layer_height_ranges roundtrip';
}
__END__