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:
authorShaul Kedem <shaul_kedem@yahoo.com>2009-04-13 03:05:40 +0400
committerShaul Kedem <shaul_kedem@yahoo.com>2009-04-13 03:05:40 +0400
commita71016a1a340b623727012c366de600b71348b68 (patch)
treebce5e7a44ecf07d6728ad0d2a99e363ab7ecaff8 /source/blender/editors/space_script
parente9937120b890a03dbd7aea74e85bfd9b7af3db1e (diff)
additional op naming convention changes
Diffstat (limited to 'source/blender/editors/space_script')
-rw-r--r--source/blender/editors/space_script/script_edit.c4
-rw-r--r--source/blender/editors/space_script/script_intern.h2
-rw-r--r--source/blender/editors/space_script/script_ops.c4
3 files changed, 5 insertions, 5 deletions
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");
}