forked from bartvdbraak/blender
fix for crash with the job system progress bar on load, matt you may want to check if this case should be happening at all.
This commit is contained in:
parent
ae8bba2165
commit
180a9f1a81
@ -449,12 +449,15 @@ void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if there are running jobs, set the global progress indicator */
|
/* on file load 'winactive' can be NULL, possibly it should not happen but for now do a NULL check - campbell */
|
||||||
if (jobs_progress > 0) {
|
if(wm->winactive) {
|
||||||
float progress = total_progress / (float)jobs_progress;
|
/* if there are running jobs, set the global progress indicator */
|
||||||
WM_progress_set(wm->winactive, progress);
|
if (jobs_progress > 0) {
|
||||||
} else {
|
float progress = total_progress / (float)jobs_progress;
|
||||||
WM_progress_clear(wm->winactive);
|
WM_progress_set(wm->winactive, progress);
|
||||||
|
} else {
|
||||||
|
WM_progress_clear(wm->winactive);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user