Attempting to fix "set started" not being set

This commit is contained in:
igiannakas 2023-09-11 20:19:06 +01:00
parent 95a41a689f
commit cdf3f29496
3 changed files with 12 additions and 4 deletions

View file

@ -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))

View file

@ -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,

View file

@ -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(); })) {