Fix #115562: Issues with color picker and color values near 1

Since changing the reference color space to XYZ E, there was some imprecision
in color space conversions.

Change the XYZ D65 to Linear Rec.709 conversion matrix very slightly to avoid
values rounding the wrong way.

Updated matrix provided by Zijun Zhou.

Pull Request: https://projects.blender.org/blender/blender/pulls/115767
This commit is contained in:
Brecht Van Lommel 2023-12-04 20:05:59 +01:00 committed by Brecht Van Lommel
parent 35cf616169
commit 73a8b8846d

@ -115,7 +115,7 @@ colorspaces:
from_scene_reference: !<GroupTransform>
children:
- !<ColorSpaceTransform> {src: Linear CIE-XYZ E, dst: Linear CIE-XYZ D65}
- !<MatrixTransform> {matrix: [ 3.2410032329763587, -1.5373989694887855, -0.4986158819963629, 0, -0.9692242522025164, 1.8759299836951759, 0.0415542263400847, 0, 0.0556394198519755, -0.2040112061239099, 1.0571489771875333, 0, 0, 0, 0, 1]}
- !<MatrixTransform> {matrix: [3.2404373564920070, -1.5371305409000549, -0.4985288240756933, 0, -0.9692674982687597, 1.8760136862977035, 0.0415560804587997, 0, 0.0556434463874256, -0.2040259700872272, 1.0572254813610864, 0, 0, 0, 0, 1]}
- !<ColorSpace>
name: Linear DCI-P3 D65