diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-15 18:19:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-15 18:19:32 +0400 |
commit | 0c2f08d35a483dd2a26bf3ba7360230fbada36a6 (patch) | |
tree | 11ec1e7ef27b2da529d8b5ba75f9cf1d7e832288 /source/blender/editors/space_console | |
parent | 73b04af45dad5704683fe2aaa821b5723921b43c (diff) |
fix crash when calling bpy.ops.render.render('INVOKE_DEFAULT') from the python console.
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |