Fix #33905: cycles crash with bsdf node plugged twice into add shader.

This commit is contained in:
Brecht Van Lommel 2013-01-23 13:13:20 +00:00
parent b9472cbd83
commit 7bcbbe26d5

@ -708,7 +708,8 @@ void ShaderGraph::transform_multi_closure(ShaderNode *node, ShaderOutput *weight
value2_in->value.x = 1.0f;
weight_out = math_node->output("Value");
disconnect(weight_in);
if(weight_in->link)
disconnect(weight_in);
}
/* connected to closure mix weight */