diff options
Diffstat (limited to 'intern/cycles/render/graph.cpp')
-rw-r--r-- | intern/cycles/render/graph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp index 023b5db7839..af57470aa89 100644 --- a/intern/cycles/render/graph.cpp +++ b/intern/cycles/render/graph.cpp @@ -116,7 +116,7 @@ ShaderOutput *ShaderNode::add_output(const char *name, ShaderSocketType type) return output; } -void ShaderNode::attributes(AttributeRequestSet *attributes) +void ShaderNode::attributes(Shader *shader, AttributeRequestSet *attributes) { foreach(ShaderInput *input, inputs) { if(!input->link) { @@ -151,9 +151,9 @@ ShaderNode *ShaderGraph::add(ShaderNode *node) return node; } -ShaderNode *ShaderGraph::output() +OutputNode *ShaderGraph::output() { - return nodes.front(); + return (OutputNode*)nodes.front(); } ShaderGraph *ShaderGraph::copy() |