From 0c2f08d35a483dd2a26bf3ba7360230fbada36a6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 15 Jan 2012 14:19:32 +0000 Subject: fix crash when calling bpy.ops.render.render('INVOKE_DEFAULT') from the python console. --- source/blender/editors/space_console/console_ops.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_console') diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index c91c8e1bd14..9640701965c 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -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; } -- cgit v1.2.3