diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2006-05-26 19:28:04 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2006-05-26 19:28:04 +0400 |
commit | dee16b9e3dac0d88275f856fc6cb6760851f40a6 (patch) | |
tree | bb3c600e1953d0791885f9967c72eecc356f6c80 /source/blender/python/api2_2x/Image.c | |
parent | 222844b87cac7c7a6a99a240837f25cd4bc5a7df (diff) |
* 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
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r-- | source/blender/python/api2_2x/Image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index bb9914d7c64..6d056da1ecb 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -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; |