diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-06-17 01:58:45 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-06-17 01:58:45 +0400 |
commit | 928335f18618095393eef5a0b5249b5af11375b7 (patch) | |
tree | f816bb5919d2514709bf6e00747b664f88fe4136 /utils | |
parent | 4d8ecccc5e538e535ea34d2d3959f17846a411e4 (diff) |
Removed print_center option (but left --print-center from CLI)
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/pdf-slices.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/pdf-slices.pl b/utils/pdf-slices.pl index 3931dceac..fa7612bb1 100755 --- a/utils/pdf-slices.pl +++ b/utils/pdf-slices.pl @@ -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; |