"operator.ED_VIEW3D_OT_viewhome(center=1)" calls the operator, converting keyword args to properties. Need a way to run scripts in the UI for useful testing. Still need to deal with operator exceptions and verifying args against operator options. Added temporary WM_operatortype_first() to allow python to return a list if available operators, can replace this with something better later (operator iterator?)
17 lines
586 B
Python
17 lines
586 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('intern/*.c')
|
|
|
|
incs = '. ../editors/include ../makesdna ../makesrna ../blenlib ../blenkernel ../nodes'
|
|
incs += ' ../imbuf ../blenloader ../render/extern/include ../windowmanager'
|
|
incs += ' #intern/guardedalloc #intern/memutil'
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
|
|
defs = []
|
|
|
|
if env['OURPLATFORM'] in ('win32-mingw', 'win32-vc') and env['BF_DEBUG']:
|
|
defs.append('Py_TRACE_REFS')
|
|
|
|
env.BlenderLib( libname = 'bf_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','intern'], priority = [33,43])
|