Bake API: reports were used after being freed leading to random crashes (fix T40077)
This commit is contained in:
@@ -1045,7 +1045,7 @@ static int bake_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)
|
||||
|
||||
/* setup job */
|
||||
wm_job = WM_jobs_get(CTX_wm_manager(C), CTX_wm_window(C), scene, "Texture Bake",
|
||||
WM_JOB_EXCL_RENDER | WM_JOB_PRIORITY | WM_JOB_PROGRESS, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE);
|
||||
WM_JOB_EXCL_RENDER | WM_JOB_PRIORITY | WM_JOB_PROGRESS, WM_JOB_TYPE_OBJECT_BAKE);
|
||||
WM_jobs_customdata_set(wm_job, bkr, bake_freejob);
|
||||
WM_jobs_timer(wm_job, 0.5, NC_IMAGE, 0); /* TODO - only draw bake image, can we enforce this */
|
||||
WM_jobs_callbacks(wm_job, bake_startjob, NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user