Fix for OutputFile node, this would crash with unconnected sockets in MultiEXR mode, because it matches sockets and EXR layers by index and was skipping unconnected sockets. Simply create EXR layer info
for all sockets now and then ignore unconnected layers when finally writing to file in deinitExecution.
This commit is contained in:
@@ -59,12 +59,12 @@ void OutputFileNode::convertToOperations(ExecutionSystem *graph, CompositorConte
|
||||
bool hasConnections = false;
|
||||
for (int i = 0; i < num_inputs; ++i) {
|
||||
InputSocket *input = getInputSocket(i);
|
||||
NodeImageMultiFileSocket *sockdata = (NodeImageMultiFileSocket *)input->getbNodeSocket()->storage;
|
||||
|
||||
outputOperation->add_layer(sockdata->layer, input->getDataType());
|
||||
|
||||
if (input->isConnected()) {
|
||||
hasConnections = true;
|
||||
NodeImageMultiFileSocket *sockdata = (NodeImageMultiFileSocket *)input->getbNodeSocket()->storage;
|
||||
|
||||
outputOperation->add_layer(sockdata->layer, input->getDataType());
|
||||
|
||||
input->relinkConnections(outputOperation->getInputSocket(i));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user