mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
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:
parent
a7153c67e6
commit
32213ce679
2 changed files with 57 additions and 28 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue