Implements loading of multi-part objects as a bunch of STLs

for a multi-material printer.
Also only a single pop-up dialog is open when loading multiple files.
This commit is contained in:
bubnikv 2017-07-11 13:55:55 +02:00
parent a7153c67e6
commit 32213ce679
2 changed files with 57 additions and 28 deletions

View file

@ -111,10 +111,8 @@ if ((!@ARGV || $opt{gui}) && !$opt{save} && eval "require Slic3r::GUI; 1") {
setlocale(LC_NUMERIC, 'C');
$gui->{mainframe}->load_config_file($_) for @{$opt{load}};
$gui->{mainframe}->load_config($cli_config);
foreach my $input_file (@ARGV) {
$input_file = Slic3r::decode_path($input_file);
$gui->{mainframe}{plater}->load_file($input_file) unless $opt{no_plater};
}
my @input_files = map Slic3r::decode_path($_), @ARGV;
$gui->{mainframe}{plater}->load_files(\@input_files) unless $opt{no_plater};
$gui->MainLoop;
exit;
}