mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 14:22:43 -07:00
Bugfix: legacy config files with empty temperature and/or first_layer_temperature caused crash
This commit is contained in:
@@ -157,7 +157,7 @@ our $Options = {
|
||||
type => 'i',
|
||||
max => 300,
|
||||
serialize => sub { join ',', @{$_[0]} },
|
||||
deserialize => sub { [ split /,/, $_[0] ] },
|
||||
deserialize => sub { $_[0] ? [ split /,/, $_[0] ] : [0] },
|
||||
default => [200],
|
||||
},
|
||||
'first_layer_temperature' => {
|
||||
@@ -167,7 +167,7 @@ our $Options = {
|
||||
cli => 'first-layer-temperature=i@',
|
||||
type => 'i',
|
||||
serialize => sub { join ',', @{$_[0]} },
|
||||
deserialize => sub { [ split /,/, $_[0] ] },
|
||||
deserialize => sub { $_[0] ? [ split /,/, $_[0] ] : [0] },
|
||||
max => 300,
|
||||
default => [200],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user