Fix #30900: when opengl offscreen render failed, the wait cursor would incorrectly
stay visible. Patch by Justin Dailey.
This commit is contained in:
@@ -318,9 +318,6 @@ static int screen_opengl_render_init(bContext *C, wmOperator *op)
|
||||
/* stop all running jobs, currently previews frustrate Render */
|
||||
WM_jobs_stop_all(CTX_wm_manager(C));
|
||||
|
||||
/* handle UI stuff */
|
||||
WM_cursor_wait(1);
|
||||
|
||||
/* create offscreen buffer */
|
||||
sizex = (scene->r.size * scene->r.xsch) / 100;
|
||||
sizey = (scene->r.size * scene->r.ysch) / 100;
|
||||
@@ -333,6 +330,9 @@ static int screen_opengl_render_init(bContext *C, wmOperator *op)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* handle UI stuff */
|
||||
WM_cursor_wait(1);
|
||||
|
||||
/* allocate opengl render */
|
||||
oglrender = MEM_callocN(sizeof(OGLRender), "OGLRender");
|
||||
op->customdata = oglrender;
|
||||
|
||||
Reference in New Issue
Block a user