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
+13
View File
@@ -10,6 +10,9 @@ ColorManager::ColorManager()
{
// Ensures config is set to something
config_ = OCIO::GetCurrentConfig();
// Default reference space is scene linear
reference_space_ = OCIO::ROLE_SCENE_LINEAR;
}
OCIO::ConstConfigRcPtr ColorManager::GetConfig() const
@@ -108,6 +111,16 @@ void ColorManager::SetDefaultInputColorSpace(const QString &s)
default_input_color_space_ = s;
}
const QString &ColorManager::GetReferenceColorSpace() const
{
return reference_space_;
}
void ColorManager::SetReferenceColorSpace(const QString &s)
{
reference_space_ = s;
}
QStringList ColorManager::ListAvailableInputColorspaces(OCIO::ConstConfigRcPtr config)
{
QStringList spaces;