mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 21:21:10 -06:00
Large refactoring to allow processing multimaterial files
This commit is contained in:
parent
04be94023b
commit
02356fd613
13 changed files with 982 additions and 891 deletions
|
|
@ -88,9 +88,9 @@ if (@ARGV) { # slicing from command line
|
|||
|
||||
while (my $input_file = shift @ARGV) {
|
||||
my $print = Slic3r::Print->new(config => $config);
|
||||
$print->add_objects_from_file($input_file);
|
||||
$print->add_model(Slic3r::Model->read_from_file($input_file));
|
||||
if ($opt{merge}) {
|
||||
$print->add_objects_from_file($_) for splice @ARGV, 0;
|
||||
$print->add_model(Slic3r::Model->read_from_file($_)) for splice @ARGV, 0;
|
||||
}
|
||||
$print->duplicate;
|
||||
$print->arrange_objects if @{$print->objects} > 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue