Fix for saved animation image sequence renders being too dark

(caused by my recent color management commit)
This commit is contained in:
2010-01-14 00:03:58 +00:00
parent ddafe3f5df
commit 61d4ff5890

View File

@@ -2803,9 +2803,8 @@ static int do_write_image_or_movie(Render *re, Scene *scene, bMovieHandle *mh, R
/* float factor for random dither, imbuf takes care of it */
ibuf->dither= scene->r.dither_intensity;
/* gamma correct to sRGB color space */
if (scene->r.color_mgt_flag & R_COLOR_MANAGEMENT)
ibuf->profile = IB_PROFILE_SRGB;
/* prepare to gamma correct to sRGB color space */
ibuf->profile = IB_PROFILE_LINEAR_RGB;
ok= BKE_write_ibuf(scene, ibuf, name, scene->r.imtype, scene->r.subimtype, scene->r.quality);