Fix QuadriFlow sometimes failing when called from Python

When the QuadriFlow was called with immediate execution `G.is_break`,
if the user had pressed Escape, the value could be set to true and the
operator would immediately exit reporting the operation was canceled.
This commit is contained in:
Campbell Barton
2025-03-11 13:51:49 +11:00
parent 58c29625b2
commit 53c8672284
@@ -740,10 +740,12 @@ static int quadriflow_break_job(void *customdata)
/* this is not nice yet, need to make the jobs list template better
* for identifying/acting upon various different jobs */
/* but for now we'll reuse the render break... */
bool should_break = (G.is_break);
if (should_break) {
qj->success = -1;
bool should_break = false;
if (qj->is_nonblocking_job) {
bool should_break = (G.is_break);
if (should_break) {
qj->success = -1;
}
}
return should_break;