Legacy config files were not correctly supported

This commit is contained in:
Alessandro Ranellucci 2012-06-06 18:47:11 +02:00
parent 82dd3c7a3e
commit c7af74884f

View file

@ -535,7 +535,7 @@ sub load {
# handle legacy options
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 =~ s/^bottom_layer_speed$/first_layer_speed/;
$val = $val =~ /^\d+(\.\d+)?$/ ? ($val*100) . "%" : 0;