diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-13 14:10:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-13 14:10:29 +0300 |
commit | 5a322bd67cf1f99b4d8fc26e50edb22904f58b9e (patch) | |
tree | 4739ef0abd2ce0dd110f93742e3faf9e7543fba7 /source/blender/editors/space_script/script_edit.c | |
parent | b17964af11a1acab393ac2d51b2b0bd55a8c127c (diff) |
F8 reload works again, script errors are printed but dont stop loading every other script
Diffstat (limited to 'source/blender/editors/space_script/script_edit.c')
-rw-r--r-- | source/blender/editors/space_script/script_edit.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c index 630ea752f22..355095ea290 100644 --- a/source/blender/editors/space_script/script_edit.c +++ b/source/blender/editors/space_script/script_edit.c @@ -89,34 +89,3 @@ void SCRIPT_OT_python_file_run(wmOperatorType *ot) RNA_def_string_file_path(ot->srna, "path", "", 512, "Path", ""); } -static int run_ui_scripts_exec(bContext *C, wmOperator *op) -{ -#ifndef DISABLE_PYTHON -// TODO -#endif - return OPERATOR_FINISHED; -} - -static int run_ui_scripts_invoke(bContext *C, wmOperator *op, wmEvent *event) -{ - int ret= run_ui_scripts_exec(C, op); - - if(ret==OPERATOR_FINISHED) - WM_event_add_notifier(C, NC_WINDOW, NULL); - - return ret; -} - - -void SCRIPT_OT_python_run_ui_scripts(wmOperatorType *ot) -{ - /* identifiers */ - ot->name= "Reload Python Interface"; - ot->description= "Reload Python interface."; - ot->idname= "SCRIPT_OT_python_run_ui_scripts"; - - /* api callbacks */ - ot->exec= run_ui_scripts_exec; - ot->invoke= run_ui_scripts_invoke; - ot->poll= ED_operator_areaactive; -} |