moved ColorManager to a node

Reduces code by reusing the existing node infrastructure. Also
helps prevent race conditions since the node/render system is
designed for multithreading.
This commit is contained in:
itsmattkc
2021-02-18 14:33:08 +11:00
parent e0e4e42096
commit cc9747ede4
11 changed files with 183 additions and 151 deletions
@@ -195,8 +195,10 @@ void ProjectPropertiesDialog::accept()
}
// This should ripple changes throughout the program that the color config has changed, therefore must be done last
working_project_->color_manager()->SetConfigAndDefaultInput(ocio_filename_->text(),
default_input_colorspace_->currentText());
ColorManager* color_manager = working_project_->color_manager();
color_manager->SetConfigFilename(ocio_filename_->text());
color_manager->SetDefaultInputColorSpace(default_input_colorspace_->currentText());
QDialog::accept();
}