forked from bartvdbraak/blender
2.5 / SCons
* make sure we can still compile WITH_BF_PYTHON=0
This commit is contained in:
parent
3ecf8d3a90
commit
aeef01559e
@ -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);
|
||||
|
@ -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] )
|
||||
|
Loading…
Reference in New Issue
Block a user