mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00: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',
|
type => 'i',
|
||||||
max => 300,
|
max => 300,
|
||||||
serialize => sub { join ',', @{$_[0]} },
|
serialize => sub { join ',', @{$_[0]} },
|
||||||
deserialize => sub { [ split /,/, $_[0] ] },
|
deserialize => sub { $_[0] ? [ split /,/, $_[0] ] : [0] },
|
||||||
default => [200],
|
default => [200],
|
||||||
},
|
},
|
||||||
'first_layer_temperature' => {
|
'first_layer_temperature' => {
|
||||||
@@ -167,7 +167,7 @@ our $Options = {
|
|||||||
cli => 'first-layer-temperature=i@',
|
cli => 'first-layer-temperature=i@',
|
||||||
type => 'i',
|
type => 'i',
|
||||||
serialize => sub { join ',', @{$_[0]} },
|
serialize => sub { join ',', @{$_[0]} },
|
||||||
deserialize => sub { [ split /,/, $_[0] ] },
|
deserialize => sub { $_[0] ? [ split /,/, $_[0] ] : [0] },
|
||||||
max => 300,
|
max => 300,
|
||||||
default => [200],
|
default => [200],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user