Fix Cycles bug rendering with multiple UV maps after recent changes.
[blender.git] / intern / cycles / render / nodes.cpp
index dc015b871e5da6cb77d311f7b5ef5838ecf8a53f..d32b1513e42402743fccccb430730685355bf860 100644 (file)
@@ -3483,7 +3483,7 @@ void TextureCoordinateNode::compile(SVMCompiler& compiler)
                }
                else {
                        int attr = compiler.attribute(ATTR_STD_UV);
-                       compiler.add_node(attr_node, attr, compiler.stack_assign(out), NODE_ATTR_FLOAT2);
+                       compiler.add_node(attr_node, attr, compiler.stack_assign(out), NODE_ATTR_FLOAT3);
                }
        }