1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Index: alicevision/src/aliceVision/image/colorspace.cpp
===================================================================
--- alicevision.orig/src/aliceVision/image/colorspace.cpp
+++ alicevision/src/aliceVision/image/colorspace.cpp
@@ -102,6 +102,11 @@ std::string getDefaultColorConfigFilePat
ALICEVISION_LOG_DEBUG("ALICEVISION_ROOT is not defined, use embedded OCIO config file from source code: " << configFromSource);
return configFromSource;
}
+
+ const std::string configFromSystem("/usr/share/aliceVision/config.ocio");
+ if (fs::exists(configFromSystem))
+ return configFromSystem;
+
// Output message with logging before throw as this function could be called before main.
ALICEVISION_LOG_ERROR("ALICEVISION_ROOT is not defined, embedded OCIO config file cannot be accessed.");
ALICEVISION_THROW_ERROR("ALICEVISION_ROOT is not defined, embedded OCIO config file cannot be accessed.");
|