mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Move centering outside the Print object
This commit is contained in:
parent
2eff7c238e
commit
250608aa52
10 changed files with 174 additions and 115 deletions
|
@ -144,6 +144,7 @@ if (@ARGV) { # slicing from command line
|
|||
# if all input objects have defined position(s) apply duplication to the whole model
|
||||
$model->duplicate($config, $config->duplicate);
|
||||
}
|
||||
$model->center_instances_around_point($config->print_center);
|
||||
|
||||
if ($opt{info}) {
|
||||
$model->print_info;
|
||||
|
@ -152,6 +153,7 @@ if (@ARGV) { # slicing from command line
|
|||
|
||||
my $print = Slic3r::Print->new(config => $config);
|
||||
$print->add_model_object($_) for @{$model->objects};
|
||||
undef $model; # free memory
|
||||
$print->validate;
|
||||
my %params = (
|
||||
output_file => $opt{output},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue