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-10-31 16:31:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-10-31 16:31:23 +0300
commitea265fc69702566a846be3005d9fd814a10d7d54 (patch)
tree011f35edde76ca7519c6e4bfc9acb01c0d39774e /source/blender/python/intern/bpy_operator_wrap.c
parent85eb9d6a2f0a0d94f795fc5264670e85ad56992f (diff)
change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.
replacements... "__idname__" -> "bl_idname" "__props__" -> "bl_props" "__label__" -> "bl_label" "__register__" -> "bl_register" "__undo__" -> "bl_undo" "__space_type__" -> "bl_space_type" "__default_closed__" -> "bl_default_closed" "__region_type__" -> "bl_region_type" "__context__" -> "bl_context" "__show_header__" -> "bl_show_header" "__URL__" -> "_url"
Diffstat (limited to 'source/blender/python/intern/bpy_operator_wrap.c')
-rw-r--r--source/blender/python/intern/bpy_operator_wrap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/python/intern/bpy_operator_wrap.c b/source/blender/python/intern/bpy_operator_wrap.c
index 769a8336d4a..959213b77aa 100644
--- a/source/blender/python/intern/bpy_operator_wrap.c
+++ b/source/blender/python/intern/bpy_operator_wrap.c
@@ -41,13 +41,13 @@
#include "../generic/bpy_internal_import.h" // our own imports
-#define PYOP_ATTR_PROP "__props__"
-#define PYOP_ATTR_UINAME "__label__"
-#define PYOP_ATTR_IDNAME "__idname__" /* the name given by python */
-#define PYOP_ATTR_IDNAME_BL "__idname_bl__" /* our own name converted into blender syntax, users wont see this */
-#define PYOP_ATTR_DESCRIPTION "__doc__" /* use pythons docstring */
-#define PYOP_ATTR_REGISTER "__register__" /* True/False. if this python operator should be registered */
-#define PYOP_ATTR_UNDO "__undo__" /* True/False. if this python operator should be undone */
+#define PYOP_ATTR_PROP "bl_props"
+#define PYOP_ATTR_UINAME "bl_label"
+#define PYOP_ATTR_IDNAME "bl_idname" /* the name given by python */
+#define PYOP_ATTR_IDNAME_BL "_bl_idname" /* our own name converted into blender syntax, users wont see this */
+#define PYOP_ATTR_DESCRIPTION "__doc__" /* use pythons docstring */
+#define PYOP_ATTR_REGISTER "bl_register" /* True/False. if this python operator should be registered */
+#define PYOP_ATTR_UNDO "bl_undo" /* True/False. if this python operator should be undone */
static struct BPY_flag_def pyop_ret_flags[] = {
{"RUNNING_MODAL", OPERATOR_RUNNING_MODAL},
@@ -98,7 +98,7 @@ static int PYTHON_OT_generic(int mode, bContext *C, wmOperatorType *ot, wmOperat
bpy_context_set(C, &gilstate);
args = PyTuple_New(1);
- PyTuple_SET_ITEM(args, 0, PyObject_GetAttrString(py_class, "__rna__")); // need to use an rna instance as the first arg
+ PyTuple_SET_ITEM(args, 0, PyObject_GetAttrString(py_class, "bl_rna")); // need to use an rna instance as the first arg
py_class_instance = PyObject_Call(py_class, args, NULL);
Py_DECREF(args);