Change order in DLP projection
This commit is contained in:
parent
5844b956be
commit
5655f786f4
@ -610,8 +610,10 @@ sub stop_print {
|
|||||||
$self->screen->project_layers(undef);
|
$self->screen->project_layers(undef);
|
||||||
|
|
||||||
# send custom end G-code
|
# send custom end G-code
|
||||||
|
if ($self->sender) {
|
||||||
$self->sender->send($_, 1) for grep !/^;/, split /\n/, $self->config->end_gcode;
|
$self->sender->send($_, 1) for grep !/^;/, split /\n/, $self->config->end_gcode;
|
||||||
$self->sender->disconnect if $self->sender;
|
$self->sender->disconnect;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub is_projecting {
|
sub is_projecting {
|
||||||
@ -655,8 +657,7 @@ sub project_next_layer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# TODO: we should block until G1 commands have been performed, see note below
|
# TODO: we should block until G1 commands have been performed, see note below
|
||||||
# TODO: subtract this waiting time from the settle_time
|
$self->delay($self->config2->{settle_time}, sub {
|
||||||
$self->delay(2, sub {
|
|
||||||
$self->project_layer($self->_layer_num);
|
$self->project_layer($self->_layer_num);
|
||||||
|
|
||||||
# get exposure time
|
# get exposure time
|
||||||
@ -666,25 +667,17 @@ sub project_next_layer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$self->delay($time, sub {
|
$self->delay($time, sub {
|
||||||
$self->settle;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
sub settle {
|
|
||||||
my ($self) = @_;
|
|
||||||
|
|
||||||
Slic3r::debugf "settling\n";
|
|
||||||
$self->screen->project_layers(undef);
|
$self->screen->project_layers(undef);
|
||||||
$self->delay($self->config2->{settle_time}, sub {
|
|
||||||
$self->project_next_layer;
|
$self->project_next_layer;
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
sub DESTROY {
|
sub DESTROY {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
|
|
||||||
$self->timer->Stop if $self->timer;
|
$self->timer->Stop if $self->timer;
|
||||||
|
$self->sender->disconnect if $self->sender;
|
||||||
}
|
}
|
||||||
|
|
||||||
package Slic3r::GUI::Projector::Screen;
|
package Slic3r::GUI::Projector::Screen;
|
||||||
|
Loading…
Reference in New Issue
Block a user