diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-29 00:11:36 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-29 00:11:36 +0400 |
commit | becc094119d1aec9c94d55ca9589751c050d0dd0 (patch) | |
tree | 9e6556c98e4dd757e5d5d3746bdd2ff6dbe9203d /source/blender/blenkernel/intern/sequencer.c | |
parent | 9d3f5ea334ca116cb3978d5ea0e440e1602cbe9d (diff) |
Fix #29692: 3D Scene is Rendering Bright in the VSE
profile conversion for sequencer result sued to happen even if
color management is disabled for scene which made frames brighter.
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index 249555578f0..cc4b8917a32 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -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) { |