[Bf-blender-cvs] [6a48a9dc6e9] master: Code cleanup: fix incorrect socket names in hair and particle info nodes.

Brecht Van Lommel noreply at git.blender.org
Thu Feb 22 00:58:53 CET 2018


Commit: 6a48a9dc6e9c9c38036b90187fae5a2c208946de
Author: Brecht Van Lommel
Date:   Wed Feb 21 13:18:40 2018 +0100
Branches: master
https://developer.blender.org/rB6a48a9dc6e9c9c38036b90187fae5a2c208946de

Code cleanup: fix incorrect socket names in hair and particle info nodes.

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

M	intern/cycles/render/nodes.cpp

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

diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 48613a9324c..56c9e669a5c 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -3463,7 +3463,7 @@ NODE_DEFINE(ParticleInfoNode)
 {
 	NodeType* type = NodeType::add("particle_info", create, NodeType::SHADER);
 
-	SOCKET_OUT_FLOAT(random, "Index");
+	SOCKET_OUT_FLOAT(index, "Index");
 	SOCKET_OUT_FLOAT(random, "Random");
 	SOCKET_OUT_FLOAT(age, "Age");
 	SOCKET_OUT_FLOAT(lifetime, "Lifetime");
@@ -3576,7 +3576,7 @@ NODE_DEFINE(HairInfoNode)
 	SOCKET_OUT_FLOAT(is_strand, "Is Strand");
 	SOCKET_OUT_FLOAT(intercept, "Intercept");
 	SOCKET_OUT_FLOAT(thickness, "Thickness");
-	SOCKET_OUT_NORMAL(tangent Normal, "Tangent Normal");
+	SOCKET_OUT_NORMAL(tangent_normal, "Tangent Normal");
 #if 0 /*output for minimum hair width transparency - deactivated */
 	SOCKET_OUT_FLOAT(fade, "Fade");
 #endif



More information about the Bf-blender-cvs mailing list