Don't set done on a canceled step.

This commit is contained in:
tamasmeszaros 2018-12-20 16:25:32 +01:00
parent 5cd5937795
commit ee8df7b408

View File

@ -872,6 +872,7 @@ void SLAPrint::process()
if(po->m_stepmask[currentstep] && po->set_started(currentstep)) {
report_status(*this, int(st), OBJ_STEP_LABELS[currentstep]);
pobj_program[currentstep](*po);
throw_if_canceled();
po->set_done(currentstep);
}
@ -897,6 +898,7 @@ void SLAPrint::process()
{
report_status(*this, int(st), PRINT_STEP_LABELS[currentstep]);
print_program[currentstep]();
throw_if_canceled();
set_done(currentstep);
}