bugfix [#25073] Rendered image goes dim when saved from python batch script
This commit is contained in:
parent
d624d1cbdd
commit
1e57d8c4e7
@ -1983,6 +1983,9 @@ static ImBuf *image_get_render_result(Image *ima, ImageUser *iuser, void **lock_
|
|||||||
ibuf->flags &= ~IB_zbuffloat;
|
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;
|
ibuf->dither= dither;
|
||||||
|
|
||||||
ima->ok= IMA_OK_LOADED;
|
ima->ok= IMA_OK_LOADED;
|
||||||
|
Loading…
Reference in New Issue
Block a user