mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-13 18:52:52 +02:00
Store config in Slic3r::GCode object
This commit is contained in:
1 parent
7baaf6bf5d
commit
da76496988
3 files changed
+72
-68
No files matched your search
@@ -11,8 +11,10 @@ use Slic3r;
|
||||
use Slic3r::Geometry qw(scale);
|
||||
|
||||
{
|
||||
local $Slic3r::Config = Slic3r::Config->new_from_defaults;
|
||||
my $gcodegen = Slic3r::GCode->new(layer_count => 1);
|
||||
my $gcodegen = Slic3r::GCode->new(
|
||||
config => Slic3r::Config->new_from_defaults,
|
||||
layer_count => 1,
|
||||
);
|
||||
$gcodegen->set_shift(10, 10);
|
||||
is_deeply $gcodegen->last_pos, [scale -10, scale -10], 'last_pos is shifted correctly';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user