Fix T48657: Incorrect render with Cycles (CPU) using texture
authorLukas Stockner <lukas.stockner@freenet.de>
Fri, 17 Jun 2016 03:20:47 +0000 (05:20 +0200)
committerLukas Stockner <lukas.stockner@freenet.de>
Fri, 17 Jun 2016 03:20:47 +0000 (05:20 +0200)
The sockets of the RGB to BW node were set to the wrong type after the recent node refactor.

intern/cycles/render/nodes.cpp

index 1157a1297ef714e3e8dedf581ef6036d9633c91f..a2e51713d65aa2e42353af337e0c0386972cc272 100644 (file)
@@ -1564,8 +1564,8 @@ NODE_DEFINE(RGBToBWNode)
 {
        NodeType* type = NodeType::add("rgb_to_bw", create, NodeType::SHADER);
 
-       SOCKET_IN_POINT(color, "Color", make_float3(0.0f, 0.0f, 0.0f));
-       SOCKET_OUT_POINT(val, "Val");
+       SOCKET_IN_COLOR(color, "Color", make_float3(0.0f, 0.0f, 0.0f));
+       SOCKET_OUT_FLOAT(val, "Val");
 
        return type;
 }