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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user