Added back importing UI scripts rather then running,

The bug was todo with bpy.data and bpy.types becoming invalid, temporary fix is to re-assign them to the bpy module before running python operators or panels.
will look into a nicer way to get this working.
This commit is contained in:
2009-04-11 16:17:39 +00:00
parent 91d6e68830
commit 3f98b7ac35
7 changed files with 119 additions and 43 deletions

View File

@@ -101,6 +101,7 @@ extern "C" {
int BPY_run_script_space_draw(struct bContext *C, struct SpaceScript * sc); // 2.5 working
void BPY_run_ui_scripts(struct bContext *C);
// int BPY_run_script_space_listener(struct bContext *C, struct SpaceScript * sc, struct ARegion *ar, struct wmNotifier *wmn); // 2.5 working
void BPY_update_modules( void ); // XXX - annoying, need this for pointers that get out of date