Ported Slic3r::Print::State to XS

This commit is contained in:
Alessandro Ranellucci 2013-12-20 01:36:42 +01:00
parent d2295cdf70
commit a6a6a6888b
9 changed files with 124 additions and 45 deletions

View file

@ -350,10 +350,10 @@ sub process {
my ($step, $cb) = @_;
for my $obj_idx (0..$#{$self->objects}) {
my $object = $self->objects->[$obj_idx];
if (!$object->_state->done($step, $obj_idx)) {
$object->_state->set_started($step, $obj_idx);
if (!$object->_state->done($step)) {
$object->_state->set_started($step);
$cb->($obj_idx);
$object->_state->set_done($step, $obj_idx);
$object->_state->set_done($step);
}
}
};