[Bf-blender-cvs] [f5e4f20dc14] master: Fix: Build error when building with python off

Ray Molenkamp noreply at git.blender.org
Thu Apr 2 15:08:57 CEST 2020


Commit: f5e4f20dc1439bee3a76e6a850e5af66acc09036
Author: Ray Molenkamp
Date:   Thu Apr 2 07:08:51 2020 -0600
Branches: master
https://developer.blender.org/rBf5e4f20dc1439bee3a76e6a850e5af66acc09036

Fix: Build error when building with python off

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

M	source/creator/creator_args.c

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

diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index a5b9df166a4..6ce3066ece1 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -1929,7 +1929,9 @@ static int arg_handle_python_use_system_env_set(int UNUSED(argc),
                                                 const char **UNUSED(argv),
                                                 void *UNUSED(data))
 {
+#  ifdef WITH_PYTHON
   BPY_python_use_system_env();
+#  endif
   return 0;
 }



More information about the Bf-blender-cvs mailing list