mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
Bugfix: unable to read back config file if start or end gcode was empty. #84
This commit is contained in:
parent
e99c9f9e5f
commit
aab85a4e27
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ sub load {
|
||||||
open my $fh, '<', $file;
|
open my $fh, '<', $file;
|
||||||
while (<$fh>) {
|
while (<$fh>) {
|
||||||
next if /^\s*#/;
|
next if /^\s*#/;
|
||||||
/^(\w+) = (.+)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
/^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n";
|
||||||
my $key = $1;
|
my $key = $1;
|
||||||
if (!exists $Options->{$key}) {
|
if (!exists $Options->{$key}) {
|
||||||
$key = +(grep { $Options->{$_}{aliases} && grep $_ eq $key, @{$Options->{$_}{aliases}} }
|
$key = +(grep { $Options->{$_}{aliases} && grep $_ eq $key, @{$Options->{$_}{aliases}} }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue