Re-generate pattern on reslice

This commit is contained in:
thewildmage
2023-07-10 18:15:58 -06:00
parent b8728e7921
commit e11d409455

View File

@@ -10341,6 +10341,11 @@ void Plater::reslice()
// Stop arrange and (or) optimize rotation tasks.
this->stop_jobs();
// regenerate CalibPressureAdvancePattern custom G-code to account for changes
if (p->model.calib_pa_pattern) {
p->model.calib_pa_pattern->generate_gcodes(p->model);
}
if (printer_technology() == ptSLA) {
for (auto& object : model().objects)
if (object->sla_points_status == sla::PointsStatus::NoPoints)