Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-01-15 18:19:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-15 18:19:32 +0400
commit0c2f08d35a483dd2a26bf3ba7360230fbada36a6 (patch)
tree11ec1e7ef27b2da529d8b5ba75f9cf1d7e832288 /source/blender/editors/space_console
parent73b04af45dad5704683fe2aaa821b5723921b43c (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.c6
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;
}