Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-03-04 16:26:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-03-04 16:26:33 +0300
commit36c3ed2350bb504b1b0a7a378d2d40a73bc3a769 (patch)
treef50dde4d57eb7ebbbb4b041e5930b55ca3be2ce9 /source/blender/editors/space_script
parent7d5ef14d5fa7301778ae9f0d80b68a04107e4ef2 (diff)
run script in the text editor is back. UI scripts dont work yet.
Diffstat (limited to 'source/blender/editors/space_script')
-rw-r--r--source/blender/editors/space_script/script_edit.c2
-rw-r--r--source/blender/editors/space_script/space_script.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c
index 1194d4b254c..da53057c5eb 100644
--- a/source/blender/editors/space_script/script_edit.c
+++ b/source/blender/editors/space_script/script_edit.c
@@ -66,7 +66,7 @@ static int run_pyfile_exec(bContext *C, wmOperator *op)
char filename[512];
RNA_string_get(op->ptr, "filename", filename);
#ifndef DISABLE_PYTHON
- BPY_run_python_script(C, filename);
+ BPY_run_python_script(C, filename, NULL);
#endif
ED_region_tag_redraw(ar);
diff --git a/source/blender/editors/space_script/space_script.c b/source/blender/editors/space_script/space_script.c
index 8fedcd8761f..054033fd987 100644
--- a/source/blender/editors/space_script/space_script.c
+++ b/source/blender/editors/space_script/space_script.c
@@ -155,10 +155,10 @@ static void script_main_area_draw(const bContext *C, ARegion *ar)
UI_view2d_view_ortho(C, v2d);
/* data... */
- // BPY_run_python_script(C, "/root/blender-svn/blender25/test.py");
+ // BPY_run_python_script(C, "/root/blender-svn/blender25/test.py", NULL);
if (sscript->script) {
- //BPY_run_python_script_space(scpt->script.filename);
+ //BPY_run_python_script_space(scpt->script.filename, NULL);
BPY_run_script_space_draw(C, sscript);
}