mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 21:21:10 -06:00
Keep model objects aligned to Z = 0 in plater
This commit is contained in:
parent
050f9ff61a
commit
360dee862b
10 changed files with 43 additions and 32 deletions
|
|
@ -10,9 +10,9 @@ use Test::More tests => 4;
|
|||
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';
|
||||
isa_ok $object->origin_translation, 'Slic3r::Pointf3::Ref';
|
||||
$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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue