Fix #35272: cycles GPU crash with anisotropic shader in group node.

Problem was that due to group proxy node the anisotropic node did not detect
early enough that it needs generated texture coordinate data to generate the
tangent. Now the proxy nodes are removed earlier.
This commit is contained in:
Brecht Van Lommel
2013-05-10 11:31:57 +00:00
parent 4392fc6f1d
commit e46551246c
3 changed files with 42 additions and 27 deletions

View File

@@ -66,6 +66,12 @@ Shader::~Shader()
void Shader::set_graph(ShaderGraph *graph_)
{
/* do this here already so that we can detect if mesh or object attributes
* 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();
/* assign graph */
delete graph;
delete graph_bump;