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:
authorTon Roosendaal <ton@blender.org>2011-01-08 20:47:34 +0300
committerTon Roosendaal <ton@blender.org>2011-01-08 20:47:34 +0300
commit5e8b877268bda3aa6b3481615788fa85daf34307 (patch)
tree2ca7804ff2fd14f7cc0052ae73f7f9b54daacb4d /source/blender/editors/space_console
parent6594b591de9fbbacb1c148f891cdfc963ba61a72 (diff)
Crash fix, IRC report.
Python console crashed on opening. Too quick code cleaning for "unused variables" caused a complete line of code to disappear that was needed anyway :)
Diffstat (limited to 'source/blender/editors/space_console')
-rw-r--r--source/blender/editors/space_console/console_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c
index 43b2c645924..05c3561d25e 100644
--- a/source/blender/editors/space_console/console_ops.c
+++ b/source/blender/editors/space_console/console_ops.c
@@ -663,6 +663,8 @@ static int scrollback_append_exec(bContext *C, wmOperator *op)
char *str= RNA_string_get_alloc(op->ptr, "text", NULL, 0); /* own this text in the new line, dont free */
int type= RNA_enum_get(op->ptr, "type");
+ console_history_verify(C);
+
ci= console_scrollback_add_str(sc, str, 1); /* own the string */
ci->type= type;