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:
authorJoseph Gilbert <ascotan@gmail.com>2006-05-26 01:10:28 +0400
committerJoseph Gilbert <ascotan@gmail.com>2006-05-26 01:10:28 +0400
commit1b577b7f0df9e482a222bf8e51b98349739ed7d7 (patch)
treeb313c9495b93930fa3d7fbd885d2ffabb842dfa2 /source/blender/python/api2_2x/sceneRender.c
parentaf87c651a5a8cce6fb78aa3727b097211eadcbf8 (diff)
*python documention & bug fix
- added documentation to Render - saveRenderedImage has an option to save the zbuffer along with the image (off by default) - fixed a really annoying runtime error of uninitialized data being passed to a method in pipeline.c during a render
Diffstat (limited to 'source/blender/python/api2_2x/sceneRender.c')
-rw-r--r--source/blender/python/api2_2x/sceneRender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c
index 5d81be2e7e4..864dca200cd 100644
--- a/source/blender/python/api2_2x/sceneRender.c
+++ b/source/blender/python/api2_2x/sceneRender.c
@@ -918,6 +918,8 @@ PyObject *RenderData_SaveRenderedImage ( BPy_RenderData * self, PyObject *args )
if( strlen(self->renderContext->pic) + strlen(name_str) > sizeof(filepath)-1 )
return EXPP_ReturnPyObjError( PyExc_ValueError, "full filename too long" );
+ if zbuff !=0 zbuff = 1; //required 1/0
+
BLI_strncpy( filepath, self->renderContext->pic, sizeof(filepath) );
strcat(filepath, name_str);