Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_OutputFileNode.cpp
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | for (int i = 0; i < num_inputs; ++i) { | ||||
| if (is_multiview && format->views_format == R_IMF_VIEWS_MULTIVIEW) { | if (is_multiview && format->views_format == R_IMF_VIEWS_MULTIVIEW) { | ||||
| outputOperation = new OutputOpenExrSingleLayerMultiViewOperation( | outputOperation = new OutputOpenExrSingleLayerMultiViewOperation( | ||||
| context.getRenderData(), | context.getRenderData(), | ||||
| context.getbNodeTree(), | context.getbNodeTree(), | ||||
| input->getDataType(), | input->getDataType(), | ||||
| format, | format, | ||||
| path, | path, | ||||
| context.getViewSettings(), | |||||
| context.getDisplaySettings(), | |||||
| context.getViewName()); | context.getViewName()); | ||||
| } | } | ||||
| else if ((!is_multiview) || (format->views_format == R_IMF_VIEWS_INDIVIDUAL)) { | else if ((!is_multiview) || (format->views_format == R_IMF_VIEWS_INDIVIDUAL)) { | ||||
| outputOperation = new OutputSingleLayerOperation(context.getRenderData(), | outputOperation = new OutputSingleLayerOperation(context.getRenderData(), | ||||
| context.getbNodeTree(), | context.getbNodeTree(), | ||||
| input->getDataType(), | input->getDataType(), | ||||
| format, | format, | ||||
| path, | path, | ||||
| context.getViewSettings(), | |||||
| context.getDisplaySettings(), | |||||
| context.getViewName()); | context.getViewName()); | ||||
| } | } | ||||
| else { /* R_IMF_VIEWS_STEREO_3D */ | else { /* R_IMF_VIEWS_STEREO_3D */ | ||||
| outputOperation = new OutputStereoOperation(context.getRenderData(), | outputOperation = new OutputStereoOperation(context.getRenderData(), | ||||
| context.getbNodeTree(), | context.getbNodeTree(), | ||||
| input->getDataType(), | input->getDataType(), | ||||
| format, | format, | ||||
| path, | path, | ||||
| sockdata->layer, | sockdata->layer, | ||||
| context.getViewSettings(), | |||||
| context.getDisplaySettings(), | |||||
| context.getViewName()); | context.getViewName()); | ||||
| } | } | ||||
| converter.addOperation(outputOperation); | converter.addOperation(outputOperation); | ||||
| converter.mapInputSocket(input, outputOperation->getInputSocket(0)); | converter.mapInputSocket(input, outputOperation->getInputSocket(0)); | ||||
| if (!previewAdded) { | if (!previewAdded) { | ||||
| converter.addNodeInputPreview(input); | converter.addNodeInputPreview(input); | ||||
| previewAdded = true; | previewAdded = true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||