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:
authorCampbell Barton <ideasman42@gmail.com>2010-01-23 23:43:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-23 23:43:55 +0300
commit22f7c8b1cd676d596fd23525f446938a0d022614 (patch)
tree50a94714f2cfe291d69cef73550c948e051b2a18 /source/blender/blenkernel/intern/context.c
parent9d96399eeb5de8aaff5af1852b0d4ff16e626df1 (diff)
support for compiling blender without python working again (with cmake at least)
Diffstat (limited to 'source/blender/blenkernel/intern/context.c')
-rw-r--r--source/blender/blenkernel/intern/context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/context.c b/source/blender/blenkernel/intern/context.c
index fc1ef4aede9..c715ce5cf53 100644
--- a/source/blender/blenkernel/intern/context.c
+++ b/source/blender/blenkernel/intern/context.c
@@ -46,7 +46,9 @@
#include "BKE_screen.h"
#include "BKE_global.h"
+#ifndef DISABLE_PYTHON
#include "BPY_extern.h"
+#endif
#include <string.h>
@@ -413,13 +415,13 @@ static int ctx_data_get(bContext *C, const char *member, bContextDataResult *res
int ret= 0;
memset(result, 0, sizeof(bContextDataResult));
-
+#ifndef DISABLE_PYTHON
if(CTX_py_dict_get(C)) {
return BPY_context_get(C, member, result);
// if (BPY_context_get(C, member, result))
// return 1;
}
-
+#endif
/* we check recursion to ensure that we do not get infinite
* loops requesting data from ourselfs in a context callback */