Code cleanup: remove copy of shader graph for bump, no longer needed.
This commit is contained in:
@@ -221,28 +221,6 @@ OutputNode *ShaderGraph::output()
|
||||
return (OutputNode*)nodes.front();
|
||||
}
|
||||
|
||||
ShaderGraph *ShaderGraph::copy()
|
||||
{
|
||||
ShaderGraph *newgraph = new ShaderGraph();
|
||||
|
||||
/* copy nodes */
|
||||
ShaderNodeSet nodes_all;
|
||||
foreach(ShaderNode *node, nodes)
|
||||
nodes_all.insert(node);
|
||||
|
||||
ShaderNodeMap nodes_copy;
|
||||
copy_nodes(nodes_all, nodes_copy);
|
||||
|
||||
/* add nodes (in same order, so output is still first) */
|
||||
newgraph->clear_nodes();
|
||||
foreach(ShaderNode *node, nodes)
|
||||
newgraph->add(nodes_copy[node]);
|
||||
|
||||
newgraph->simplified = simplified;
|
||||
|
||||
return newgraph;
|
||||
}
|
||||
|
||||
void ShaderGraph::connect(ShaderOutput *from, ShaderInput *to)
|
||||
{
|
||||
assert(!finalized);
|
||||
|
Reference in New Issue
Block a user