Take bottom layer speed ratio into account when estimating layer time. #334

This commit is contained in:
Alessandro Ranellucci 2012-05-01 11:48:22 +02:00
parent 94cfc1c05f
commit 3ed5171d20

View file

@ -164,7 +164,9 @@ sub extrude_path {
}
if ($Slic3r::cooling) {
$self->elapsed_time($self->elapsed_time + (unscale($path_length) / $self->speeds->{$self->last_speed} * 60));
my $path_time = unscale($path_length) / $self->speeds->{$self->last_speed} * 60;
$path_time /= $Slic3r::bottom_layer_speed_ratio if $self->layer->id == 0;
$self->elapsed_time($self->elapsed_time + $path_time);
}
return $gcode;