fix crash when calling bpy.ops.render.render('INVOKE_DEFAULT') from the python console.

This commit is contained in:
Campbell Barton
2012-01-15 14:19:32 +00:00
parent 73b04af45d
commit 0c2f08d35a

View File

@@ -655,7 +655,11 @@ static int console_history_append_exec(bContext *C, wmOperator *op)
ED_area_tag_redraw(sa);
console_scroll_bottom(ar);
/* when calling render modally this can be NULL when calling:
* bpy.ops.render.render('INVOKE_DEFAULT') */
if (ar) {
console_scroll_bottom(ar);
}
return OPERATOR_FINISHED;
}