From ee8df7b408aefe2fd5b350969f3a7ced5ddaff16 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 20 Dec 2018 16:25:32 +0100 Subject: [PATCH] Don't set done on a canceled step. --- src/libslic3r/SLAPrint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp index 15f0e410e..31ba0be3d 100644 --- a/src/libslic3r/SLAPrint.cpp +++ b/src/libslic3r/SLAPrint.cpp @@ -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); }