Fix slow cancellation of rasterization step

fixes #6253
This commit is contained in:
tamasmeszaros 2021-04-08 14:35:58 +02:00
parent e8af080346
commit 08ca5b29f0
2 changed files with 19 additions and 9 deletions

View file

@ -1093,7 +1093,8 @@ void SLAPrint::Steps::rasterize()
if(canceled()) return;
// Print all the layers in parallel
m_print->m_printer->draw_layers(m_print->m_printer_input.size(), lvlfn);
m_print->m_printer->draw_layers(m_print->m_printer_input.size(), lvlfn,
[this]() { return canceled(); }, ex_tbb);
}
std::string SLAPrint::Steps::label(SLAPrintObjectStep step)