Fix #135354: View render animation from Python no longer shows progress
To match old behavior, keep showing the time cursor in case a blocking animation render is used from a Python script.
This commit is contained in:
@@ -914,6 +914,9 @@ static void screen_opengl_render_end(OGLRender *oglrender)
|
||||
oglrender->scene->r.cfra = oglrender->cfrao;
|
||||
BKE_scene_graph_update_for_newframe(depsgraph);
|
||||
}
|
||||
else if (oglrender->win) {
|
||||
WM_cursor_modal_restore(oglrender->win);
|
||||
}
|
||||
|
||||
WM_main_add_notifier(NC_SCENE | ND_RENDER_RESULT, oglrender->scene);
|
||||
G.is_rendering = false;
|
||||
@@ -1134,6 +1137,12 @@ static bool screen_opengl_render_anim_step(OGLRender *oglrender)
|
||||
}
|
||||
}
|
||||
|
||||
if (!oglrender->wm_job && oglrender->win) {
|
||||
/* When doing blocking animation render without a job from a Python script, show time cursor so
|
||||
* Blender doesn't appear frozen. */
|
||||
WM_cursor_time(oglrender->win, scene->r.cfra);
|
||||
}
|
||||
|
||||
BKE_scene_graph_update_for_newframe(depsgraph);
|
||||
|
||||
if (view_context) {
|
||||
|
||||
Reference in New Issue
Block a user