[Bf-blender-cvs] [27d20a04b54] master: Fix unreported bug in Blender Render: using unnormalized normal in normal map node in the same way as in baking

Alexander Romanov noreply at git.blender.org
Fri Mar 31 16:53:19 CEST 2017


Commit: 27d20a04b54e334784eeb0ec8d440fd6707d9fa3
Author: Alexander Romanov
Date:   Fri Mar 31 17:53:55 2017 +0300
Branches: master
https://developer.blender.org/rB27d20a04b54e334784eeb0ec8d440fd6707d9fa3

Fix unreported bug in Blender Render: using unnormalized normal in normal map node in the same way as in baking

===================================================================

M	source/blender/nodes/shader/nodes/node_shader_normal_map.c

===================================================================

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:




More information about the Bf-blender-cvs mailing list