From 27d20a04b54e334784eeb0ec8d440fd6707d9fa3 Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Fri, 31 Mar 2017 17:53:55 +0300 Subject: [PATCH] Fix unreported bug in Blender Render: using unnormalized normal in normal map node in the same way as in baking --- source/blender/nodes/shader/nodes/node_shader_normal_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/shader/nodes/node_shader_normal_map.c b/source/blender/nodes/shader/nodes/node_shader_normal_map.c index 48d1688c386..e0bf34f42e4 100644 --- a/source/blender/nodes/shader/nodes/node_shader_normal_map.c +++ b/source/blender/nodes/shader/nodes/node_shader_normal_map.c @@ -63,7 +63,7 @@ static void node_shader_exec_normal_map(void *data, int UNUSED(thread), bNode *n CLAMP_MIN(strength, 0.0f); - float *N = shi->vno; + float *N = shi->nmapnorm; int uv_index = 0; switch (nm->space) { case SHD_NORMAL_MAP_TANGENT: