diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-03-19 01:22:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-03-19 01:22:58 +0300 |
commit | 3aab50f775e4928d3ee525a999e2b4c995ae9ae4 (patch) | |
tree | 68c902e2336dd3e12f41e85cda9ade1f7025e9a0 /source/blender/python/intern/bpy_operator.c | |
parent | 43d4e3fa7efca3ae2cedfd35fa344bf2ef298a7f (diff) |
* removed warnings and fixed some python refcount errors
* operator class names
- Changed 'name' to '__label__' (since __name__ is already used for the class name)
- Changed 'properties' to '__props__'
* added a PyObject_GetAttrStringArgs(), utility function which Id like to see in pythons C api.
PyObject_GetAttrStringArgs(pyob, "someattr", "foo", "bar") /* pyob.someattr.foo.bar */
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index d2dbd6c91bb..a35c5ed2cb4 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -110,7 +110,7 @@ int PYOP_props_from_dict(PointerRNA *ptr, PyObject *kw) static PyObject *pyop_base_dir(PyObject *self); static struct PyMethodDef pyop_base_methods[] = { {"__dir__", (PyCFunction)pyop_base_dir, METH_NOARGS, ""}, - {"add", (PyCFunction)PYOP_wrap_add, METH_VARARGS, ""}, + {"add", (PyCFunction)PYOP_wrap_add, METH_O, ""}, {"remove", (PyCFunction)PYOP_wrap_remove, METH_O, ""}, {NULL, NULL, 0, NULL} }; |