diff options
author | bubnikv <bubnikv@gmail.com> | 2017-07-11 14:55:55 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-07-11 14:55:55 +0300 |
commit | 32213ce6798606df405cc6106b9c95106d253090 (patch) | |
tree | fbeb506e1650dcd68e728f74b8b8c7719939b292 /slic3r.pl | |
parent | a7153c67e6c548a7b923e9a59c717005c69fb551 (diff) |
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.
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |