Bugfix: --datadir was ignored. #651
This commit is contained in:
parent
757515ba17
commit
ca44cba6c3
@ -71,11 +71,11 @@ if ($opt{save}) {
|
||||
# launch GUI
|
||||
my $gui;
|
||||
if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") {
|
||||
$gui = Slic3r::GUI->new;
|
||||
{
|
||||
no warnings 'once';
|
||||
$Slic3r::GUI::datadir = $opt{datadir} if $opt{datadir};
|
||||
}
|
||||
$gui = Slic3r::GUI->new;
|
||||
$gui->{skeinpanel}->load_config_file($_) for @{$opt{load}};
|
||||
$gui->{skeinpanel}->load_config($cli_config);
|
||||
$gui->MainLoop;
|
||||
|
Loading…
Reference in New Issue
Block a user