mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Support for legacy config files containing bottom_layer_speed_ratio. #151
This commit is contained in:
@@ -520,8 +520,8 @@ sub load {
|
|||||||
|
|
||||||
# handle legacy options
|
# handle legacy options
|
||||||
next if $ignore{$key};
|
next if $ignore{$key};
|
||||||
if ($key eq 'extrusion_width_ratio') {
|
if ($key =~ /^(?:extrusion_width|bottom_layer_speed)_ratio$/) {
|
||||||
$key = 'extrusion_width';
|
$key = $1;
|
||||||
$val = $val =~ /^\d+(\.\d+)?$/ ? ($val*100) . "%" : 0;
|
$val = $val =~ /^\d+(\.\d+)?$/ ? ($val*100) . "%" : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user