From 2ac3b1fba9e1d72c3565567828cb3ebc1c42a575 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 9 Apr 2014 18:43:48 +0200 Subject: [PATCH] Support the percent format for fill_density introduced in 1.1.x (forward compatibility). #1880 --- lib/Slic3r/Config.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index d6a7db1c..880f13d4 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -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