Support the percent format for fill_density introduced in 1.1.x (forward compatibility). #1880

stable
Alessandro Ranellucci 2014-04-09 18:43:48 +02:00
parent 97d9c9f5e7
commit 2ac3b1fba9
1 changed files with 3 additions and 0 deletions

View File

@ -1279,6 +1279,9 @@ sub set {
if ($opt_key eq 'gcode_flavor' && $value eq 'makerbot') {
$value = 'makerware';
}
if ($opt_key eq 'fill_density' && $value =~ /^(.+?)%$/) {
$value = $1/100;
}
# For historical reasons, the world's full of configs having these very low values;
# to avoid unexpected behavior we need to ignore them. Banning these two hard-coded