From 4a86a07f8a8344ce7bd0dce02d8902e33d652a1a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 21 Dec 2008 08:53:36 +0000 Subject: wip operator py-api "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?) --- source/blender/python/BPY_extern.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/BPY_extern.h') diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 1761ce14ed6..8561f9d1b55 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -94,7 +94,7 @@ extern "C" { int BPY_menu_do_python( short menutype, int event ); int BPY_menu_do_shortcut( short menutype, unsigned short key, unsigned short modifiers ); int BPY_menu_invoke( struct BPyMenu *pym, short menutype ); - void BPY_run_python_script( const char *filename ); + void BPY_run_python_script( struct bContext *C, const char *filename ); int BPY_run_script(struct Script *script); void BPY_free_compiled_text( struct Text *text ); -- cgit v1.2.3