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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-03-15 22:42:06 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-03-15 22:47:07 +0300
commitbe51d671b500e8b6881295778de7272a70504b71 (patch)
tree9c216b23ae5d1d7cedd4a2aefe4560df161337ee /intern/cycles/kernel/shaders/node_normal_map.osl
parent8f93386e6296dc7a190b61cb473b1eaec76b9111 (diff)
Fix T86121: Cycles Attribute returning wrong results with OSL
Fix uninitialized variable in the OSL shader.
Diffstat (limited to 'intern/cycles/kernel/shaders/node_normal_map.osl')
-rw-r--r--intern/cycles/kernel/shaders/node_normal_map.osl2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/shaders/node_normal_map.osl b/intern/cycles/kernel/shaders/node_normal_map.osl
index 912960f13ab..6d4780f6dae 100644
--- a/intern/cycles/kernel/shaders/node_normal_map.osl
+++ b/intern/cycles/kernel/shaders/node_normal_map.osl
@@ -31,7 +31,7 @@ shader node_normal_map(normal NormalIn = N,
vector tangent;
vector ninterp;
float tangent_sign;
- float is_smooth;
+ float is_smooth = 0.0;
getattribute("geom:is_smooth", is_smooth);
if (!is_smooth) {