Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-05-28 22:32:12 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-05-29 18:22:58 +0300
commit30f7acfffa427f6de42aefbf829a408cb3411b19 (patch)
tree45025d767d1c3f0bdb3a192d27b47803fcf227f2 /source/creator
parent115547991a1129554eae99462df6386eafb2bd8c (diff)
Docs: Add relevant OCIO envvars to Blender's help message
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt4
-rw-r--r--source/creator/creator_args.c9
2 files changed, 13 insertions, 0 deletions
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