mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-05 16:51:07 -07:00
Attempting to fix "set started" not being set
This commit is contained in:
parent
95a41a689f
commit
cdf3f29496
3 changed files with 12 additions and 4 deletions
|
|
@ -1666,6 +1666,15 @@ void Print::process(bool use_cache)
|
|||
obj->set_done(posPerimeters);
|
||||
}
|
||||
}
|
||||
for (PrintObject *obj : m_objects) {
|
||||
if (need_slicing_objects.count(obj) != 0) {
|
||||
obj->estimate_curled_extrusions();
|
||||
}
|
||||
else {
|
||||
if (obj->set_started(posEstimateCurledExtrusions))
|
||||
obj->set_done(posEstimateCurledExtrusions);
|
||||
}
|
||||
}
|
||||
for (PrintObject *obj : m_objects) {
|
||||
if (need_slicing_objects.count(obj) != 0) {
|
||||
obj->infill();
|
||||
|
|
@ -1693,7 +1702,6 @@ void Print::process(bool use_cache)
|
|||
PrintObject* obj = m_objects[i];
|
||||
if (need_slicing_objects.count(obj) != 0) {
|
||||
obj->generate_support_material();
|
||||
obj->estimate_curled_extrusions();
|
||||
}
|
||||
else {
|
||||
if (obj->set_started(posSupportMaterial))
|
||||
|
|
|
|||
|
|
@ -87,8 +87,8 @@ enum PrintStep {
|
|||
};
|
||||
|
||||
enum PrintObjectStep {
|
||||
posSlice, posPerimeters, posPrepareInfill,
|
||||
posInfill, posIroning, posSupportMaterial, posSimplifyPath, posSimplifySupportPath, posEstimateCurledExtrusions,
|
||||
posSlice, posPerimeters,posEstimateCurledExtrusions, posPrepareInfill,
|
||||
posInfill, posIroning, posSupportMaterial, posSimplifyPath, posSimplifySupportPath,
|
||||
// BBS
|
||||
posSimplifyInfill,
|
||||
posDetectOverhangsForLift,
|
||||
|
|
|
|||
|
|
@ -502,7 +502,7 @@ void PrintObject::generate_support_material()
|
|||
void PrintObject::estimate_curled_extrusions()
|
||||
{
|
||||
if (this->set_started(posEstimateCurledExtrusions)) {
|
||||
//printf("Estimating curled Extrusions \n");
|
||||
printf("Estimating curled Extrusions \n");
|
||||
if ( std::any_of(this->print()->m_print_regions.begin(), this->print()->m_print_regions.end(),
|
||||
[](const PrintRegion *region) { return region->config().enable_overhang_speed.getBool(); })) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue