Fix Cycles node definition typos and incorrect enum value.

Differential Revision: https://developer.blender.org/D4174
This commit is contained in:
Alex Fuller 2019-01-14 15:41:24 +01:00 committed by Brecht Van Lommel
parent 19fba61d46
commit 867ffacabf
1 changed files with 3 additions and 3 deletions

View File

@ -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);