From 4a188f8566513e986ecf2c7c01a826791ecd424f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 6 Jun 2012 15:48:14 +0200 Subject: [PATCH] Support for legacy config files containing bottom_layer_speed_ratio. #151 --- lib/Slic3r/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index fbc3aa222..5cd7a56d5 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -520,8 +520,8 @@ sub load { # handle legacy options next if $ignore{$key}; - if ($key eq 'extrusion_width_ratio') { - $key = 'extrusion_width'; + if ($key =~ /^(?:extrusion_width|bottom_layer_speed)_ratio$/) { + $key = $1; $val = $val =~ /^\d+(\.\d+)?$/ ? ($val*100) . "%" : 0; }