Color Management, Stage 2: Switch color pipeline to use OpenColorIO
[blender.git] / source / blender / render / intern / source / shadeinput.c
index bbdcfbb5a73feae266b095adf8615a562aede9f8..d1d2c66985ec6e619ec5da9bbf6d2bf5346d9a4b 100644 (file)
@@ -1325,7 +1325,14 @@ void shade_input_initialize(ShadeInput *shi, RenderPart *pa, RenderLayer *rl, in
        shi->sample = sample;
        shi->thread = pa->thread;
        shi->do_preview = (R.r.scemode & R_MATNODE_PREVIEW) != 0;
-       shi->do_manage = (R.r.color_mgt_flag & R_COLOR_MANAGEMENT);
+
+       /* OCIO_TODO: for now assume color management is always enabled and vertes colors are in sRGB space
+        *            probably would be nice to have this things configurable, but for now it should work
+        *            also probably this flag could be removed (in separated commit) before the release
+        *            since it's not actually meaningful anymore
+        */
+       shi->do_manage = TRUE;
+
        shi->lay = rl->lay;
        shi->layflag = rl->layflag;
        shi->passflag = rl->passflag;