Commit: 30f7acfffa427f6de42aefbf829a408cb3411b19
Author: Aaron Carlisle
Date:   Fri May 28 15:32:12 2021 -0400
Branches: master
https://developer.blender.org/rB30f7acfffa427f6de42aefbf829a408cb3411b19

Docs: Add relevant OCIO envvars to Blender's help message

===================================================================

M       source/creator/CMakeLists.txt
M       source/creator/creator_args.c

===================================================================

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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to