Fix for saved animation image sequence renders being too dark
authorMatt Ebb <matt@mke3.net>
Thu, 14 Jan 2010 00:03:58 +0000 (00:03 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 14 Jan 2010 00:03:58 +0000 (00:03 +0000)
(caused by my recent color management commit)

source/blender/render/intern/source/pipeline.c

index 5824e917fca240cfd946e042ff0bc37b3d7db3d6..8a608feebecd3b2c658adfb4b45805441e2ea456 100644 (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);