Fix T37345: Image baking progress bar wrongly appears in node editor
Baking job is owned by scene but only need to update image space contexts. This leads to job progress bar stuck in node editor. Made it so node editor does not display baking jobs now.
This commit is contained in:
@@ -3239,6 +3239,16 @@ void uiTemplateRunningJobs(uiLayout *layout, bContext *C)
|
||||
handle_event = B_STOPCOMPO;
|
||||
break;
|
||||
}
|
||||
else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE)) {
|
||||
/* Skip bake jobs in compositor to avoid compo header displaying
|
||||
* progress bar which is not being updated (bake jobs only need
|
||||
* to update NC_IMAGE context.
|
||||
*/
|
||||
if (sa->spacetype != SPACE_NODE) {
|
||||
handle_event = B_STOPOTHER;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_ANY)) {
|
||||
handle_event = B_STOPOTHER;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user