Fix [#20702] Problems with Colormanagement
authorMatt Ebb <matt@mke3.net>
Mon, 18 Jan 2010 02:10:55 +0000 (02:10 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 18 Jan 2010 02:10:55 +0000 (02:10 +0000)
Own bug in previous fix here..

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

index 8a608feebecd3b2c658adfb4b45805441e2ea456..ff7d0d90a065c498f018f3b5fa9616e72a243574 100644 (file)
@@ -2804,7 +2804,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;
                        /* prepare to gamma correct to sRGB color space */
-                       ibuf->profile = IB_PROFILE_LINEAR_RGB;
+                       if (scene->r.color_mgt_flag & R_COLOR_MANAGEMENT)
+                               ibuf->profile = IB_PROFILE_LINEAR_RGB;
 
                        ok= BKE_write_ibuf(scene, ibuf, name, scene->r.imtype, scene->r.subimtype, scene->r.quality);