mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 21:21:10 -06:00
Enable step caching
This commit is contained in:
parent
c5c069b9a0
commit
2d14ddb955
1 changed files with 2 additions and 4 deletions
|
|
@ -355,8 +355,7 @@ sub process {
|
||||||
if (!$self->_state->done($step)) {
|
if (!$self->_state->done($step)) {
|
||||||
$self->_state->set_started($step);
|
$self->_state->set_started($step);
|
||||||
$cb->();
|
$cb->();
|
||||||
### Re-enable this for step-based slicing:
|
$self->_state->set_done($step);
|
||||||
### $self->_state->set_done($step);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
my $object_step = sub {
|
my $object_step = sub {
|
||||||
|
|
@ -366,8 +365,7 @@ sub process {
|
||||||
if (!$object->_state->done($step)) {
|
if (!$object->_state->done($step)) {
|
||||||
$object->_state->set_started($step);
|
$object->_state->set_started($step);
|
||||||
$cb->($obj_idx);
|
$cb->($obj_idx);
|
||||||
### Re-enable this for step-based slicing:
|
$object->_state->set_done($step);
|
||||||
### $object->_state->set_done($step);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue