mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-07 03:39:13 +08:00
Legacy config files were not correctly supported
This commit is contained in:
parent
82dd3c7a3e
commit
c7af74884f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user