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;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to