forked from bartvdbraak/blender
Report to the console when custom ocio config is used
This commit is contained in:
parent
d3a94941ef
commit
56b7d55833
@ -60,7 +60,7 @@ void FallbackImpl::setCurrentConfig(const OCIO_ConstConfigRcPtr * /*config*/)
|
||||
|
||||
OCIO_ConstConfigRcPtr *FallbackImpl::configCreateFromEnv(void)
|
||||
{
|
||||
return CONFIG_DEFAULT;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
OCIO_ConstConfigRcPtr *FallbackImpl::configCreateFromFile(const char * /*filename*/)
|
||||
|
@ -626,8 +626,12 @@ void colormanagement_init(void)
|
||||
|
||||
ocio_env = getenv("OCIO");
|
||||
|
||||
if (ocio_env && ocio_env[0] != '\0')
|
||||
if (ocio_env && ocio_env[0] != '\0') {
|
||||
config = OCIO_configCreateFromEnv();
|
||||
if (config != NULL) {
|
||||
printf("Color management: Using %s as a configuration file\n", ocio_env);
|
||||
}
|
||||
}
|
||||
|
||||
if (config == NULL) {
|
||||
configdir = BLI_get_folder(BLENDER_DATAFILES, "colormanagement");
|
||||
|
Loading…
Reference in New Issue
Block a user