various: removed hardcoded OCIO::ROLE_SCENE_LINEAR to allow for a configurable reference space

This commit is contained in:
itsmattkc
2020-04-03 01:30:47 +11:00
parent 552163320c
commit e1ca5f2f82
6 changed files with 25 additions and 6 deletions
+2 -2
View File
@@ -79,10 +79,10 @@ Color ColorDialog::GetSelectedColor() const
void ColorDialog::ColorSpaceChanged(const QString &input, const QString &display, const QString &view, const QString &look)
{
ColorProcessorPtr to_linear_processor_ = ColorProcessor::Create(color_manager_->GetConfig(), input, OCIO::ROLE_SCENE_LINEAR);
ColorProcessorPtr to_linear_processor_ = ColorProcessor::Create(color_manager_->GetConfig(), input, color_manager_->GetReferenceColorSpace());
ColorProcessorPtr to_display = ColorProcessor::Create(color_manager_->GetConfig(),
OCIO::ROLE_SCENE_LINEAR,
color_manager_->GetReferenceColorSpace(),
display,
view,
look);
+1 -1
View File
@@ -270,7 +270,7 @@ void ExportDialog::accept()
SampleFormat::GetConfiguredFormatForMode(render_mode));
ColorProcessorPtr color_processor = ColorProcessor::Create(color_manager_->GetConfig(),
OCIO::ROLE_SCENE_LINEAR,
color_manager_->GetReferenceColorSpace(),
video_tab_->CurrentOCIODisplay(),
video_tab_->CurrentOCIOView(),
video_tab_->CurrentOCIOLook());