Fix #31645, mix node results in crash upon render. This happens when unused mix nodes are removed from the cycles graph. In case the inputs are both unconnected it still tried to reconnect them.

This commit is contained in:
Lukas Toenne
2012-05-30 15:47:12 +00:00
parent f462743dae
commit 0e9b0f6d9e

View File

@@ -340,6 +340,7 @@ void ShaderGraph::remove_proxy_nodes(vector<bool>& removed)
foreach(ShaderInput *input, inputs) {
disconnect(input);
if (output)
connect(output, input);
}
}