mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Legacy config files were not correctly supported
This commit is contained in:
@@ -535,7 +535,7 @@ sub load {
|
|||||||
|
|
||||||
# handle legacy options
|
# handle legacy options
|
||||||
next if $ignore{$key};
|
next if $ignore{$key};
|
||||||
if ($key =~ /^(?:extrusion_width|bottom_layer_speed|first_layer_height)_ratio$/) {
|
if ($key =~ /^(extrusion_width|bottom_layer_speed|first_layer_height)_ratio$/) {
|
||||||
$key = $1;
|
$key = $1;
|
||||||
$key =~ s/^bottom_layer_speed$/first_layer_speed/;
|
$key =~ s/^bottom_layer_speed$/first_layer_speed/;
|
||||||
$val = $val =~ /^\d+(\.\d+)?$/ ? ($val*100) . "%" : 0;
|
$val = $val =~ /^\d+(\.\d+)?$/ ? ($val*100) . "%" : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user