removed hardcoded OCIO config

This commit is contained in:
itsmattkc
2019-09-10 13:19:55 +10:00
parent ef0a914288
commit c26eee7df4
+3 -2
View File
@@ -14,14 +14,15 @@ ColorService::ColorService(const char* source_space, const char* dest_space)
void ColorService::Init() void ColorService::Init()
{ {
try { // FIXME: Load configured config file for this session
/*try {
// FIXME: Hardcoded values for testing purposes // FIXME: Hardcoded values for testing purposes
OCIO::ConstConfigRcPtr config = OCIO::Config::CreateFromFile("/run/media/matt/Home/OpenColorIO/ocio.configs.0.7v4/nuke-default/config.ocio"); OCIO::ConstConfigRcPtr config = OCIO::Config::CreateFromFile("/run/media/matt/Home/OpenColorIO/ocio.configs.0.7v4/nuke-default/config.ocio");
OCIO::SetCurrentConfig(config); OCIO::SetCurrentConfig(config);
} catch (OCIO::Exception& exception) { } catch (OCIO::Exception& exception) {
qWarning() << "OpenColorIO Error:" << exception.what(); qWarning() << "OpenColorIO Error:" << exception.what();
} }*/
} }
ColorServicePtr ColorService::Create(const char *source_space, const char *dest_space) ColorServicePtr ColorService::Create(const char *source_space, const char *dest_space)