diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-21 11:53:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-21 11:53:36 +0300 |
commit | 4a86a07f8a8344ce7bd0dce02d8902e33d652a1a (patch) | |
tree | e56973a3da689b78c661af594bc705cd301cfbef /source/creator | |
parent | 449e7777f75fa030894e89bd7d6a5daa9b9502b3 (diff) |
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?)
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 471ea6bbe5b..5c10b0c346c 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -679,7 +679,7 @@ int main(int argc, char **argv) //XXX // FOR TESTING ONLY a++; - BPY_run_python_script (argv[a]); + BPY_run_python_script(C, argv[a]); #if 0 a++; if (a < argc) { @@ -688,7 +688,7 @@ int main(int argc, char **argv) main_init_screen(); scr_init = 1; } - BPY_run_python_script (argv[a]); + BPY_run_python_script(C, argv[a]); } else printf("\nError: you must specify a Python script after '-P '.\n"); #endif |