Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/colormanagement.c
| Show First 20 Lines • Show All 618 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| const char *ocio_env; | const char *ocio_env; | ||||
| const char *configdir; | const char *configdir; | ||||
| char configfile[FILE_MAX]; | char configfile[FILE_MAX]; | ||||
| OCIO_ConstConfigRcPtr *config = NULL; | OCIO_ConstConfigRcPtr *config = NULL; | ||||
| OCIO_init(); | OCIO_init(); | ||||
| ocio_env = getenv("OCIO"); | ocio_env = BLI_getenv("OCIO"); | ||||
| if (ocio_env && ocio_env[0] != '\0') { | if (ocio_env && ocio_env[0] != '\0') { | ||||
| config = OCIO_configCreateFromEnv(); | config = OCIO_configCreateFromEnv(); | ||||
| if (config != NULL) { | if (config != NULL) { | ||||
| printf("Color management: Using %s as a configuration file\n", ocio_env); | printf("Color management: Using %s as a configuration file\n", ocio_env); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,862 Lines • Show Last 20 Lines | |||||