mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-08 06:24:01 -06:00
Fixed one more regression introduced with Model refactoring. Includes regression test
This commit is contained in:
parent
dd1183f19a
commit
ad99b2a0fd
4 changed files with 24 additions and 5 deletions
18
xs/t/19_model.t
Normal file
18
xs/t/19_model.t
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Slic3r::XS;
|
||||
use Test::More tests => 3;
|
||||
|
||||
{
|
||||
my $model = Slic3r::Model->new;
|
||||
my $object = $model->_add_object;
|
||||
isa_ok $object, 'Slic3r::Model::Object::Ref';
|
||||
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';
|
||||
}
|
||||
|
||||
__END__
|
Loading…
Add table
Add a link
Reference in a new issue