Skip to content

Commit

Permalink
Removed the layer_height_ranges from the Perl bindings and unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Jun 20, 2019
1 parent 27459a9 commit 8bf6e69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 4 additions & 4 deletions xs/t/19_model.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;

use Slic3r::XS;
use Test::More tests => 4;
use Test::More tests => 3;

{
my $model = Slic3r::Model->new;
Expand All @@ -14,9 +14,9 @@ use Test::More tests => 4;
$object->origin_translation->translate(10,0,0);
is_deeply \@{$object->origin_translation}, [10,0,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';
# my $lhr = [ [ 5, 10, 0.1 ] ];
# $object->set_layer_height_ranges($lhr);
# is_deeply $object->layer_height_ranges, $lhr, 'layer_height_ranges roundtrip';
}

__END__
5 changes: 0 additions & 5 deletions xs/xsp/Model.xsp
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ ModelMaterial::attributes()
Ref<Model> model()
%code%{ RETVAL = THIS->get_model(); %};

t_layer_height_ranges layer_height_ranges()
%code%{ RETVAL = THIS->layer_height_ranges; %};
void set_layer_height_ranges(t_layer_height_ranges ranges)
%code%{ THIS->layer_height_ranges = ranges; %};

Ref<Vec3d> origin_translation()
%code%{ RETVAL = &THIS->origin_translation; %};
void set_origin_translation(Vec3d* point)
Expand Down

0 comments on commit 8bf6e69

Please sign in to comment.