[Bf-blender-cvs] [867ffacabf6] blender2.7: Fix Cycles node definition typos and incorrect enum value.

Alex Fuller noreply at git.blender.org
Mon Jan 14 16:12:54 CET 2019


Commit: 867ffacabf6c25ded40a39b5af7d61fee1dacc4d
Author: Alex Fuller
Date:   Mon Jan 14 15:41:24 2019 +0100
Branches: blender2.7
https://developer.blender.org/rB867ffacabf6c25ded40a39b5af7d61fee1dacc4d

Fix Cycles node definition typos and incorrect enum value.

Differential Revision: https://developer.blender.org/D4174

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

M	intern/cycles/render/nodes.cpp

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

diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index a1f88dca466..77a452674fb 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -3735,7 +3735,7 @@ void LightPathNode::compile(OSLCompiler& compiler)
 
 NODE_DEFINE(LightFalloffNode)
 {
-	NodeType* type = NodeType::add("light_fallof", create, NodeType::SHADER);
+	NodeType* type = NodeType::add("light_falloff", create, NodeType::SHADER);
 
 	SOCKET_IN_FLOAT(strength, "Strength", 100.0f);
 	SOCKET_IN_FLOAT(smooth, "Smooth", 0.0f);
@@ -5843,7 +5843,7 @@ NODE_DEFINE(NormalMapNode)
 	space_enum.insert("world", NODE_NORMAL_MAP_WORLD);
 	space_enum.insert("blender_object", NODE_NORMAL_MAP_BLENDER_OBJECT);
 	space_enum.insert("blender_world", NODE_NORMAL_MAP_BLENDER_WORLD);
-	SOCKET_ENUM(space, "Space", space_enum, NODE_TANGENT_RADIAL);
+	SOCKET_ENUM(space, "Space", space_enum, NODE_NORMAL_MAP_TANGENT);
 
 	SOCKET_STRING(attribute, "Attribute", ustring());
 
@@ -6054,7 +6054,7 @@ NODE_DEFINE(DisplacementNode)
 	space_enum.insert("object", NODE_NORMAL_MAP_OBJECT);
 	space_enum.insert("world", NODE_NORMAL_MAP_WORLD);
 
-	SOCKET_ENUM(space, "Space", space_enum, NODE_NORMAL_MAP_TANGENT);
+	SOCKET_ENUM(space, "Space", space_enum, NODE_NORMAL_MAP_OBJECT);
 
 	SOCKET_IN_FLOAT(height, "Height", 0.0f);
 	SOCKET_IN_FLOAT(midlevel, "Midlevel", 0.5f);



More information about the Bf-blender-cvs mailing list