Color Management, Stage 2: Switch color pipeline to use OpenColorIO
[blender.git] / source / blender / compositor / nodes / COM_OutputFileNode.cpp
index b8cee29fee6c988d5782ab1401370829e6d100d9..921b9e63a73bcba4911de55c3abab2fa158e50e3 100644 (file)
@@ -62,7 +62,7 @@ void OutputFileNode::convertToOperations(ExecutionSystem *graph, CompositorConte
                                input->relinkConnections(outputOperation->getInputSocket(i));
                        }
                }
-               if (hasConnections) addPreviewOperation(graph, outputOperation->getInputSocket(0));
+               if (hasConnections) addPreviewOperation(graph, context, outputOperation->getInputSocket(0));
                
                graph->addOperation(outputOperation);
        }
@@ -80,11 +80,12 @@ void OutputFileNode::convertToOperations(ExecutionSystem *graph, CompositorConte
                                BLI_join_dirfile(path, FILE_MAX, storage->base_path, sockdata->path);
                                
                                OutputSingleLayerOperation *outputOperation = new OutputSingleLayerOperation(
-                                       context->getRenderData(), context->getbNodeTree(), input->getDataType(), format, path);
+                                       context->getRenderData(), context->getbNodeTree(), input->getDataType(), format, path,
+                                       context->getViewSettings(), context->getDisplaySettings());
                                input->relinkConnections(outputOperation->getInputSocket(0));
                                graph->addOperation(outputOperation);
                                if (!previewAdded) {
-                                       addPreviewOperation(graph, outputOperation->getInputSocket(0));
+                                       addPreviewOperation(graph, context, outputOperation->getInputSocket(0));
                                        previewAdded = true;
                                }
                        }