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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user