From a71016a1a340b623727012c366de600b71348b68 Mon Sep 17 00:00:00 2001 From: Shaul Kedem Date: Sun, 12 Apr 2009 23:05:40 +0000 Subject: additional op naming convention changes --- source/blender/editors/space_script/script_edit.c | 4 ++-- source/blender/editors/space_script/script_intern.h | 2 +- source/blender/editors/space_script/script_ops.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_script') diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c index da53057c5eb..cc8764fd67d 100644 --- a/source/blender/editors/space_script/script_edit.c +++ b/source/blender/editors/space_script/script_edit.c @@ -73,11 +73,11 @@ static int run_pyfile_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } -void SCRIPT_OT_run_pyfile(wmOperatorType *ot) +void SCRIPT_OT_python_file_run(wmOperatorType *ot) { /* identifiers */ ot->name= "Run python file"; - ot->idname= "SCRIPT_OT_run_pyfile"; + ot->idname= "SCRIPT_OT_python_file_run"; /* api callbacks */ ot->exec= run_pyfile_exec; diff --git a/source/blender/editors/space_script/script_intern.h b/source/blender/editors/space_script/script_intern.h index e9dd88e893c..e39dd168e71 100644 --- a/source/blender/editors/space_script/script_intern.h +++ b/source/blender/editors/space_script/script_intern.h @@ -39,7 +39,7 @@ void script_operatortypes(void); void script_keymap(struct wmWindowManager *wm); /* script_edit.c */ -void SCRIPT_OT_run_pyfile(struct wmOperatorType *ot); +void SCRIPT_OT_python_file_run(struct wmOperatorType *ot); #endif /* ED_SCRIPT_INTERN_H */ diff --git a/source/blender/editors/space_script/script_ops.c b/source/blender/editors/space_script/script_ops.c index 45cbf9f8a2d..d2aa9959a9d 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(SCRIPT_OT_run_pyfile); + WM_operatortype_append(SCRIPT_OT_python_file_run); } 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, "SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0)->ptr, "filename", "test.py"); + RNA_string_set(WM_keymap_add_item(keymap, "SCRIPT_OT_python_file_run", PKEY, KM_PRESS, 0, 0)->ptr, "filename", "test.py"); } -- cgit v1.2.3