Fix T73906: Crash calling render from Python

This commit is contained in:
Campbell Barton 2020-02-17 17:21:42 +11:00
parent 0a1b6a3b4a
commit fc85490c2d
Notes: blender-bot 2023-02-14 02:22:13 +01:00
Referenced by issue #73906, Python render GUI crash
1 changed files with 2 additions and 0 deletions

View File

@ -333,6 +333,8 @@ static int screen_render_exec(bContext *C, wmOperator *op)
re = RE_NewSceneRender(scene);
G.is_break = false;
RE_draw_lock_cb(re, NULL, NULL);
RE_test_break_cb(re, NULL, render_break);
ima = BKE_image_verify_viewer(mainp, IMA_TYPE_R_RESULT, "Render Result");