colormanager: always temporarily set C locale when loading an OCIO config from file

Fixes known bug in OCIO when loading files from non-English locales.
This commit is contained in:
itsmattkc
2020-05-05 14:48:09 +10:00
parent 1bf0f90a0a
commit 911ef782f9
3 changed files with 61 additions and 3 deletions
@@ -177,7 +177,7 @@ void ProjectPropertiesDialog::OCIOFilenameUpdated()
if (ocio_filename_->text().isEmpty()) {
c = ColorManager::GetDefaultConfig();
} else {
c = OCIO::Config::CreateFromFile(ocio_filename_->text().toUtf8());
c = ColorManager::CreateConfigFromFile(ocio_filename_->text());
}
ocio_filename_->setStyleSheet(QString());