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>2008-10-28 21:47:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-10-28 21:47:13 +0300
commitac4ff83ca6b5795f4451a7e743d3975aeb17ae3b (patch)
treec4f3f58a967b6c4df9339ffa159f6bb04d619c0f /source/blender/blenkernel/intern/script.c
parent705a248c75467ef67eba1cda124fd5375eb4666f (diff)
added scons option BF_WITH_PYTHON (defined as DISABLE_PYTHON)
Diffstat (limited to 'source/blender/blenkernel/intern/script.c')
-rw-r--r--source/blender/blenkernel/intern/script.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/script.c b/source/blender/blenkernel/intern/script.c
index b93821da218..6145f6c3063 100644
--- a/source/blender/blenkernel/intern/script.c
+++ b/source/blender/blenkernel/intern/script.c
@@ -44,7 +44,9 @@
#include "BKE_global.h"
#include "BKE_main.h"
+#ifndef DISABLE_PYTHON
#include "BPY_extern.h" // Blender Python library
+#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -57,5 +59,7 @@
void free_script (Script *script)
{
if (!script) return;
+#ifndef DISABLE_PYTHON
BPY_clear_script(script);
+#endif
}