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>2008-12-26 15:39:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-26 15:39:53 +0300
commit7715e45a7adf2cc07856956aef27fc6359af94e1 (patch)
tree2f15a7bdd58d5270af4b845292a77a9b6a90d846 /source/blender/editors/space_script/script_ops.c
parentd6704568f87c71940feb2b7b28950b48a7d5fcf1 (diff)
removed ED_ prefix from script operator.
python operator api was crashing when unknown operators were called.
Diffstat (limited to 'source/blender/editors/space_script/script_ops.c')
-rw-r--r--source/blender/editors/space_script/script_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_script/script_ops.c b/source/blender/editors/space_script/script_ops.c
index f6e4fa73cae..45cbf9f8a2d 100644
--- a/source/blender/editors/space_script/script_ops.c
+++ b/source/blender/editors/space_script/script_ops.c
@@ -59,7 +59,7 @@
void script_operatortypes(void)
{
- WM_operatortype_append(ED_SCRIPT_OT_run_pyfile);
+ WM_operatortype_append(SCRIPT_OT_run_pyfile);
}
void script_keymap(wmWindowManager *wm)
@@ -67,6 +67,6 @@ void script_keymap(wmWindowManager *wm)
ListBase *keymap= WM_keymap_listbase(wm, "Script", SPACE_SCRIPT, 0);
/* TODO - this is just while we have no way to load a text datablock */
- RNA_string_set(WM_keymap_add_item(keymap, "ED_SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0)->ptr, "filename", "test.py");
+ RNA_string_set(WM_keymap_add_item(keymap, "SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0)->ptr, "filename", "test.py");
}