From 0226039dfbd50f95bd94316dc256be846d4be92b Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 7 Jun 2012 11:38:54 +0200 Subject: [PATCH] Fixed regression when cooling is enabled --- lib/Slic3r/Extruder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index f68b0b99b..2d17f8037 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -185,7 +185,7 @@ sub extrude_path { if ($Slic3r::cooling) { my $path_time = unscale($path_length) / $self->speeds->{$self->last_speed} * 60; if ($self->layer->id == 0) { - $path_time = $Slic3r:: =~ /^(\d+(?:\.\d+)?)%$/ + $path_time = $Slic3r::first_layer_speed =~ /^(\d+(?:\.\d+)?)%$/ ? $path_time / ($1/100) : unscale($path_length) / $Slic3r::first_layer_speed * 60; }