Color Management: RGB curves transform as a part of display transform
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Sep 2012 16:08:36 +0000 (16:08 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 5 Sep 2012 16:08:36 +0000 (16:08 +0000)
commitee5bf889e9e00c93e5790a38cfe90af39b7b2423
tree2d265c826cb9eefe01fb485c157ad392edabeedb
parent7d980ca9694f1a19fe0e408939a34ed7b0b33f12
Color Management: RGB curves transform as a part of display transform

This replaces per-image editor curve mapping which didn't behave properly
(it was possible to open the same image in two image editors and setup
different curves in this editors, but only last changed curve was applied
on image)

After discussion with Brecht decided to have something which works reliable
and predictable and ended up with adding RGB curves as a part of display
transform, which is applied before OCIO processor (to match old behavior).

Setting white/black values from image editor (Ctrl/Shift + LMB) would
affect on scene settings.

This could break compatibility, but there's no reliable way to convert
old semi-working settings into new one.
15 files changed:
source/blender/blenkernel/BKE_colortools.h
source/blender/blenkernel/intern/colortools.c
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_ops.c
source/blender/editors/space_image/space_image.c
source/blender/imbuf/intern/colormanagement.c
source/blender/makesdna/DNA_color_types.h
source/blender/makesdna/DNA_scene_types.h
source/blender/makesdna/DNA_space_types.h
source/blender/makesrna/intern/rna_color.c
source/blender/makesrna/intern/rna_space.c