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,6 +449,8 @@ void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt)
|
||||
}
|
||||
}
|
||||
|
||||
/* on file load 'winactive' can be NULL, possibly it should not happen but for now do a NULL check - campbell */
|
||||
if(wm->winactive) {
|
||||
/* if there are running jobs, set the global progress indicator */
|
||||
if (jobs_progress > 0) {
|
||||
float progress = total_progress / (float)jobs_progress;
|
||||
@ -457,4 +459,5 @@ void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt)
|
||||
WM_progress_clear(wm->winactive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user