*python fix

- save_rendered_image_cb_real has a popup window embedded in it that prevents automation through python as a result python scripts would get a popup which is ignorned by the script
- modified so python scripts overwrite the image by default
This commit is contained in:
2006-05-25 21:34:00 +00:00
parent 2a6952f386
commit 2132bbb621
2 changed files with 12 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ struct View3D; /* keep me up here */
#define PY_FULL 2
extern void waitcursor(int);
extern void save_rendered_image_cb_real(char *name, int zbuf);
extern void save_rendered_image_cb_real(char *name, int zbuf, int confirm);
//---------------------------------------Render prototypes-------------
static PyObject *M_Render_CloseRenderWindow( PyObject * self );
@@ -932,7 +932,7 @@ PyObject *RenderData_SaveRenderedImage ( BPy_RenderData * self, PyObject *args )
BLI_splitdirstring(dir, str);
strcpy(G.ima, dir);
}
save_rendered_image_cb_real(filepath, zbuff);
save_rendered_image_cb_real(filepath, zbuff,0);
}
return EXPP_incr_ret(Py_None);
}