Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-02-17 08:13:49 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-02-17 18:26:24 +0300
commit351d8bfc41a7ab983a20a1843dec550c9b198a38 (patch)
tree4526ebc9d458e7142d57664d4b0f05d30755fd9b /intern
parent0e9497e886924cb75ca67f2c14e2fdda29f2b583 (diff)
Fix T85694: Cycles incorrect grayscale conversion with some OpenColorIO configs
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/shader.cpp4
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);