bugfix [#25073] Rendered image goes dim when saved from python batch script

This commit is contained in:
Campbell Barton 2010-12-07 05:39:14 +00:00
parent d624d1cbdd
commit 1e57d8c4e7

@ -1983,6 +1983,9 @@ static ImBuf *image_get_render_result(Image *ima, ImageUser *iuser, void **lock_
ibuf->flags &= ~IB_zbuffloat;
}
/* since its possible to access the buffer from the image directly, set the profile [#25073] */
ibuf->profile= (iuser->scene->r.color_mgt_flag & R_COLOR_MANAGEMENT) ? IB_PROFILE_LINEAR_RGB : IB_PROFILE_NONE;
ibuf->dither= dither;
ima->ok= IMA_OK_LOADED;