export: show main color spaces rather than DVL chain

This commit is contained in:
itsmattkc
2020-04-22 23:34:23 +10:00
parent 361a986b79
commit 197e60b6c3
6 changed files with 99 additions and 74 deletions
+11 -5
View File
@@ -467,11 +467,17 @@ void ViewerGLWidget::SetupColorProcessor()
try {
color_service_ = OpenGLColorProcessor::Create(color_manager_,
color_manager_->GetReferenceColorSpace(),
ocio_display_,
ocio_view_,
ocio_look_);
if (ocio_view_.isEmpty()) {
color_service_ = OpenGLColorProcessor::Create(color_manager_,
color_manager_->GetReferenceColorSpace(),
ocio_display_);
} else {
color_service_ = OpenGLColorProcessor::Create(color_manager_,
color_manager_->GetReferenceColorSpace(),
ocio_display_,
ocio_view_,
ocio_look_);
}
makeCurrent();
color_service_->Enable(context(), true);