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:
@@ -340,7 +340,8 @@ void ShaderGraph::remove_proxy_nodes(vector<bool>& removed)
|
||||
|
||||
foreach(ShaderInput *input, inputs) {
|
||||
disconnect(input);
|
||||
connect(output, input);
|
||||
if (output)
|
||||
connect(output, input);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user