diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-10-28 21:47:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-10-28 21:47:13 +0300 |
commit | ac4ff83ca6b5795f4451a7e743d3975aeb17ae3b (patch) | |
tree | c4f3f58a967b6c4df9339ffa159f6bb04d619c0f /source/blender/blenkernel/intern/script.c | |
parent | 705a248c75467ef67eba1cda124fd5375eb4666f (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.c | 4 |
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 } |