Bugfix: --datadir was ignored. #651

This commit is contained in:
Alessandro Ranellucci 2012-09-12 15:40:57 +02:00
parent 757515ba17
commit ca44cba6c3

View File

@ -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;