Fixed regression when cooling is enabled

This commit is contained in:
Alessandro Ranellucci 2012-06-07 11:38:54 +02:00
parent caa32ab282
commit 0226039dfb

View file

@ -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;
}