Fixed a regression bug due to some Perl to C++ porting
of a configuration layer. Fixes https://github.com/prusa3d/Slic3r/issues/627
This commit is contained in:
parent
cdab27d337
commit
eaaac8b2a4
@ -71,10 +71,10 @@ my @external_configs = ();
|
||||
if ($opt{load}) {
|
||||
foreach my $configfile (@{$opt{load}}) {
|
||||
if (-e $configfile) {
|
||||
push @external_configs, Slic3r::Config->load($configfile);
|
||||
push @external_configs, Slic3r::Config::load($configfile);
|
||||
} elsif (-e "$FindBin::Bin/$configfile") {
|
||||
printf STDERR "Loading $FindBin::Bin/$configfile\n";
|
||||
push @external_configs, Slic3r::Config->load("$FindBin::Bin/$configfile");
|
||||
push @external_configs, Slic3r::Config::load("$FindBin::Bin/$configfile");
|
||||
} else {
|
||||
$opt{ignore_nonexistent_config} or die "Cannot find specified configuration file ($configfile).\n";
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ my %opt = ();
|
||||
# load config
|
||||
my $config = Slic3r::Config::new_from_defaults;
|
||||
if ($opt{load}) {
|
||||
$config->apply(Slic3r::Config->load($opt{load}));
|
||||
$config->apply(Slic3r::Config::load($opt{load}));
|
||||
}
|
||||
|
||||
# init print
|
||||
|
Loading…
Reference in New Issue
Block a user