Bugfix: first_layer_speed was accepting mm/m values rather than mm/s when expressed as absolute. #452

This commit is contained in:
Alessandro Ranellucci 2012-06-17 19:42:11 +02:00
parent 24d81121b2
commit 48d345c189

View File

@ -349,7 +349,7 @@ sub _Gx {
if ($e && $self->layer->id == 0 && $comment !~ /retract/) {
$speed_f = $Slic3r::first_layer_speed =~ /^(\d+(?:\.\d+)?)%$/
? ($speed_f * $1/100)
: $Slic3r::first_layer_speed;
: $Slic3r::first_layer_speed * 60;
}
$gcode .= sprintf " F%.${dec}f", $speed_f;
$self->last_speed($speed);