diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-03-06 17:58:37 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-03-06 17:58:37 +0300 |
commit | aeef01559ef1ded236475344e0be1d88028d7c24 (patch) | |
tree | c5ca4ab288a061d1a1e28de449967c690694788f /source | |
parent | 3ecf8d3a9083264c271855efe6d148a9bb245bd2 (diff) |
2.5 / SCons
* make sure we can still compile WITH_BF_PYTHON=0
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_script/space_script.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_text/SConscript | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_script/space_script.c b/source/blender/editors/space_script/space_script.c index 054033fd987..c7f280f439e 100644 --- a/source/blender/editors/space_script/space_script.c +++ b/source/blender/editors/space_script/space_script.c @@ -157,10 +157,12 @@ static void script_main_area_draw(const bContext *C, ARegion *ar) /* data... */ // BPY_run_python_script(C, "/root/blender-svn/blender25/test.py", NULL); +#ifndef DISABLE_PYTHON if (sscript->script) { //BPY_run_python_script_space(scpt->script.filename, NULL); BPY_run_script_space_draw(C, sscript); } +#endif /* reset view matrix */ UI_view2d_view_restore(C); diff --git a/source/blender/editors/space_text/SConscript b/source/blender/editors/space_text/SConscript index c35772becbc..3d5ccc318e1 100644 --- a/source/blender/editors/space_text/SConscript +++ b/source/blender/editors/space_text/SConscript @@ -10,4 +10,4 @@ incs += ' #/intern/bmfont ../../python ../../makesrna ../../blenfont' if not env['WITH_BF_PYTHON']: defs.append('DISABLE_PYTHON') -env.BlenderLib ( 'bf_editors_space_text', sources, Split(incs), [], libtype=['core'], priority=[95] ) +env.BlenderLib ( 'bf_editors_space_text', sources, Split(incs), defs, libtype=['core'], priority=[95] ) |