From 30f7acfffa427f6de42aefbf829a408cb3411b19 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 28 May 2021 15:32:12 -0400 Subject: Docs: Add relevant OCIO envvars to Blender's help message --- source/creator/CMakeLists.txt | 4 ++++ source/creator/creator_args.c | 9 +++++++++ 2 files changed, 13 insertions(+) (limited to 'source/creator') diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 6a768106d9e..92cc4ae297a 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -119,6 +119,10 @@ if(WITH_GMP) add_definitions(-DWITH_GMP) endif() +if(WITH_OPENCOLORIO) + add_definitions(-DWITH_OCIO) +endif() + # Setup the exe sources and buildinfo set(SRC creator.c diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 36fdaef507b..f9492f5bb62 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -674,6 +674,15 @@ static int arg_handle_print_help(int UNUSED(argc), const char **UNUSED(argv), vo printf(" $BLENDER_USER_DATAFILES Directory for user data files (icons, translations, ..).\n"); printf(" $BLENDER_SYSTEM_DATAFILES Directory for system wide data files.\n"); printf(" $BLENDER_SYSTEM_PYTHON Directory for system Python libraries.\n"); +# ifdef WITH_OCIO + printf(" $OCIO Path to override the OpenColorIO config file.\n"); + printf( + " $OCIO_ACTIVE_DISPLAYS Overrides the active_displays list from the config file and " + "reorders them. Colon-separated list of displays, e.g 'sRGB:P3'.\n"); + printf( + " $OCIO_ACTIVE_VIEWS Overrides the active_views list from the config file and " + "reorders them. Colon-separated list of view names, e.g 'internal:client:DI'.\n"); +# endif # ifdef WIN32 printf(" $TEMP Store temporary files here.\n"); # else -- cgit v1.2.3