mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
Ported Slic3r::Print::State to XS
This commit is contained in:
parent
d2295cdf70
commit
a6a6a6888b
9 changed files with 124 additions and 45 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue