New --cooling option and checkbox to enable/disable fan and cooling control

This commit is contained in:
Alessandro Ranellucci 2012-02-25 21:56:36 +01:00
parent 70e69be60a
commit 170d29a789
7 changed files with 33 additions and 24 deletions

View file

@ -158,8 +158,7 @@ sub extrude_path {
}
}
# TODO: optimize: avoid calculation if cooling is disabled
if (1) {
if ($Slic3r::cooling) {
$self->elapsed_time($self->elapsed_time + (unscale($path_length) / $self->speeds->{$self->last_speed} * 60));
}