[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34178] trunk/blender/source/blender/ editors/space_console/console_ops.c: Crash fix, IRC report.

Ton Roosendaal ton at blender.org
Sat Jan 8 18:47:35 CET 2011


Revision: 34178
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34178
Author:   ton
Date:     2011-01-08 17:47:34 +0000 (Sat, 08 Jan 2011)
Log Message:
-----------
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 :)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_console/console_ops.c

Modified: trunk/blender/source/blender/editors/space_console/console_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_console/console_ops.c	2011-01-08 16:54:38 UTC (rev 34177)
+++ trunk/blender/source/blender/editors/space_console/console_ops.c	2011-01-08 17:47:34 UTC (rev 34178)
@@ -663,6 +663,8 @@
 	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;
 	




More information about the Bf-blender-cvs mailing list