From 40d06a6e116d949f9d7b9cf477a38beb93517bde Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 15 Dec 2011 12:50:02 +0100 Subject: [PATCH] Erorr in last commit about automatic extrusion width. #112 --- lib/Slic3r/Config.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index d0daa88e5..c8d900501 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -375,7 +375,8 @@ sub validate { # and the feed rate $Slic3r::flow_width = (($Slic3r::nozzle_diameter**2) * PI + ($Slic3r::layer_height**2) * (4 - PI)) / (4 * $Slic3r::layer_height); - $Slic3r::flow_width = $max_flow_width if $Slic3r::flow_width > $Slic3r::nozzle_diameter * 1.2; + my $max_flow_width = $Slic3r::nozzle_diameter * 1.2; + $Slic3r::flow_width = $max_flow_width if $Slic3r::flow_width > $max_flow_width; $Slic3r::flow_width = $Slic3r::nozzle_diameter * 1.05 if $Slic3r::flow_width < $Slic3r::nozzle_diameter; }