ColorManager is now specific to the Project

OCIO config was set on a per-project basis, but we were using a singleton for
the ColorManager that would break if more than one project was ever open.
Now the ColorManager belongs to the Project and is always accessed through the
Project.
This commit is contained in:
itsmattkc
2019-12-17 15:18:07 +11:00
parent e1b8fd6352
commit a0b6bb842d
23 changed files with 187 additions and 245 deletions
@@ -97,7 +97,7 @@ void ProjectPropertiesDialog::accept()
working_project_->set_ocio_config(ocio_filename_->text());
// This should ripple changes throughout the program that the color config has changed, therefore must be done last
ColorManager::instance()->SetConfig(config);
working_project_->color_manager()->SetConfig(config);
QDialog::accept();
} catch (OCIO::Exception& e) {