diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-02-17 08:13:49 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-17 18:26:24 +0300 |
commit | 351d8bfc41a7ab983a20a1843dec550c9b198a38 (patch) | |
tree | 4526ebc9d458e7142d57664d4b0f05d30755fd9b /intern/cycles | |
parent | 0e9497e886924cb75ca67f2c14e2fdda29f2b583 (diff) |
Fix T85694: Cycles incorrect grayscale conversion with some OpenColorIO configs
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/shader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp index 1b785fe9096..847f97fb2bf 100644 --- a/intern/cycles/render/shader.cpp +++ b/intern/cycles/render/shader.cpp @@ -873,6 +873,10 @@ void ShaderManager::init_xyz_transforms() return; } } + else { + /* No reference role found to determine XYZ. */ + return; + } xyz_to_r = float4_to_float3(xyz_to_rgb.x); xyz_to_g = float4_to_float3(xyz_to_rgb.y); |