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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-16 05:42:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-16 05:42:01 +0300
commit8eb98392dfd54f5a4f2e673f5171a72dd9f4f822 (patch)
tree37bb9f7ada358a3235b24cf9b34ff15c549b85b8 /source
parenta8d001fef5e8974c59c457455ed073b10b852339 (diff)
parenta7cf7b114f82625aa5d81e91e26e67cbe7a842bc (diff)
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/generic/py_capi_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c
index a6983c38f0e..66cb4cc0bf3 100644
--- a/source/blender/python/generic/py_capi_utils.c
+++ b/source/blender/python/generic/py_capi_utils.c
@@ -28,6 +28,12 @@
#include <Python.h>
#include <frameobject.h>
+/* Needed for 'PyInterpreterState', we should remove this dependency. */
+#if PY_VERSION_HEX >= 0x03080000
+# define Py_BUILD_CORE
+# include <internal/pycore_pystate.h>
+#endif
+
#include "BLI_utildefines.h" /* for bool */
#include "py_capi_utils.h"