mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 09:02:53 +00:00
Ported Slic3r::Print::State to XS
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user