mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-31 20:51:12 -06:00
Removed print_center option (but left --print-center from CLI)
This commit is contained in:
parent
4d8ecccc5e
commit
928335f186
15 changed files with 54 additions and 53 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue