* bug fix

[ #4228 ] Blender.Image.Load(filename) loads only on the first loading
- Image.Load() will now reload the image buffer when a image of the same name is loaded again
- small textual change in render code
This commit is contained in:
Joseph Gilbert 2006-05-26 15:28:04 +00:00
parent 222844b87c
commit dee16b9e3d
2 changed files with 5 additions and 1 deletions

@ -352,6 +352,10 @@ static PyObject *M_Image_Load( PyObject * self, PyObject * args )
return ( EXPP_ReturnPyObjError( PyExc_IOError,
"couldn't load image" ) );
//reload the image buffers
free_image_buffers(img_ptr);
img_ptr->ibuf = IMB_loadiffname(img_ptr->name , 0);
image->image = img_ptr;
return ( PyObject * ) image;

@ -903,7 +903,7 @@ PyObject *RenderData_Render( BPy_RenderData * self )
return EXPP_incr_ret( Py_None );
}
//------------------------------------RenderData.Render() ---------------
//------------------------------------RenderData.saveRenderedImage() ---------------
//This will save the rendered image to an output file path already defined
PyObject *RenderData_SaveRenderedImage ( BPy_RenderData * self, PyObject *args )
{