diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-07 08:39:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-07 08:39:14 +0300 |
commit | 1e57d8c4e7c37b09b761a538d408056f512afd0b (patch) | |
tree | 9b6fa3d2664e9bed4f908d215e5b5a173f86bb56 /source/blender/blenkernel/intern/image.c | |
parent | d624d1cbddf9ee51108e7eb89a6cfd7044fd57c0 (diff) |
bugfix [#25073] Rendered image goes dim when saved from python batch script
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 5c48569575e..6cd0c89157a 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -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; |