Fix #29692: 3D Scene is Rendering Bright in the VSE
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 28 Dec 2011 20:11:36 +0000 (20:11 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 28 Dec 2011 20:11:36 +0000 (20:11 +0000)
profile conversion for sequencer result sued to happen even if
color management is disabled for scene which made frames brighter.

source/blender/blenkernel/intern/sequencer.c

index 249555578f0b896b5843a4e2ab7100ea93d3c8a7..cc4b8917a327271b779e6cc718a2b28facf5e961 100644 (file)
@@ -2025,7 +2025,10 @@ static ImBuf * seq_render_scene_strip_impl(
                        }
 
                        /* float buffers in the sequencer are not linear */
-                       ibuf->profile= IB_PROFILE_LINEAR_RGB;
+                       if(scene->r.color_mgt_flag & R_COLOR_MANAGEMENT)
+                               ibuf->profile= IB_PROFILE_LINEAR_RGB;
+                       else
+                               ibuf->profile= IB_PROFILE_NONE;
                        IMB_convert_profile(ibuf, IB_PROFILE_SRGB);                     
                }
                else if (rres.rect32) {