replace ImBuf.depth with ImBuf.planes to match ImageFormatData.planes & to avoid...
[blender.git] / source / blender / imbuf / intern / thumbs.c
index ffe255ab9ebf236398585524bfa0e09fe9c971dc..41278e8381a39e1a313f5e6f6c44aed00599fc09 100644 (file)
@@ -363,7 +363,7 @@ ImBuf* IMB_thumb_create(const char* path, ThumbSize size, ThumbSource source, Im
                        IMB_metadata_change_field(img, "Thumb::Image::Height", cheight);
                }
                img->ftype = PNG;
-               img->depth = 32;                
+               img->planes = 32;
                if (IMB_saveiff(img, temp, IB_rect | IB_metadata)) {
 #ifndef WIN32
                        chmod(temp, S_IRUSR | S_IWUSR);