Code refactor: reduce special node types, use generic constant folding.
[blender.git] / intern / cycles / render / shader.cpp
index 09a6061abea8561b4f784835deef3fb3f54fff5b..797f31ce92db345666e8654b258b810935ed8e1c 100644 (file)
@@ -175,7 +175,7 @@ void Shader::set_graph(ShaderGraph *graph_)
         * are needed, since the node attribute callbacks check if their sockets
         * are connected but proxy nodes should not count */
        if(graph_)
-               graph_->remove_unneeded_nodes();
+               graph_->remove_proxy_nodes();
 
        /* assign graph */
        delete graph;