[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43403] trunk/blender/source/blender/ editors/space_console/console_ops.c: fix crash when calling bpy.ops.render. render('INVOKE_DEFAULT') from the python console.

Campbell Barton ideasman42 at gmail.com
Sun Jan 15 15:19:41 CET 2012


Revision: 43403
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43403
Author:   campbellbarton
Date:     2012-01-15 14:19:32 +0000 (Sun, 15 Jan 2012)
Log Message:
-----------
fix crash when calling bpy.ops.render.render('INVOKE_DEFAULT') from the python console.

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	2012-01-15 13:51:32 UTC (rev 43402)
+++ trunk/blender/source/blender/editors/space_console/console_ops.c	2012-01-15 14:19:32 UTC (rev 43403)
@@ -655,7 +655,11 @@
 
 	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;
 }




More information about the Bf-blender-cvs mailing list