From 867ffacabf6c25ded40a39b5af7d61fee1dacc4d Mon Sep 17 00:00:00 2001 From: Alex Fuller Date: Mon, 14 Jan 2019 15:41:24 +0100 Subject: Fix Cycles node definition typos and incorrect enum value. Differential Revision: https://developer.blender.org/D4174 --- intern/cycles/render/nodes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- cgit v1.2.3