From ca44cba6c376114a62e830552a2c2c207aa44836 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 12 Sep 2012 15:40:57 +0200 Subject: [PATCH] Bugfix: --datadir was ignored. #651 --- slic3r.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slic3r.pl b/slic3r.pl index 234ce5c24..e5c63b99e 100755 --- a/slic3r.pl +++ b/slic3r.pl @@ -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;