mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Removed print_center option (but left --print-center from CLI)
This commit is contained in:
@@ -31,13 +31,14 @@ my %opt = ();
|
||||
# prepare config
|
||||
my $config = Slic3r::Config->new;
|
||||
$config->set('layer_height', $opt{layer_height}) if $opt{layer_height};
|
||||
$config->set('print_center', [0,0]);
|
||||
|
||||
# read model
|
||||
my $model = Slic3r::Model->read_from_file(my $input_file = $ARGV[0]);
|
||||
|
||||
# init print object
|
||||
my $sprint = Slic3r::Print::Simple->new;
|
||||
my $sprint = Slic3r::Print::Simple->new(
|
||||
print_center => [0,0],
|
||||
);
|
||||
$sprint->apply_config($config);
|
||||
$sprint->set_model($model);
|
||||
my $print = $sprint->_print;
|
||||
|
||||
Reference in New Issue
Block a user