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>2020-05-29 07:14:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-29 08:55:20 +0300
commite115b7b06d325c00edae733f3eefd6dbab2dd89e (patch)
tree66502057685601834e04a14c5f927d0366c1738c /source/blender/python/intern/bpy_rna_types_capi.c
parent5510d5825bf3eefd62e274a56e6a09cc8d4629cf (diff)
PyAPI: support static & class methods for C RNA API methods
Previously the static/class flag was ignored, always using class methods.
Diffstat (limited to 'source/blender/python/intern/bpy_rna_types_capi.c')
-rw-r--r--source/blender/python/intern/bpy_rna_types_capi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_rna_types_capi.c b/source/blender/python/intern/bpy_rna_types_capi.c
index cfd6b7f54a8..10d6d7e8e32 100644
--- a/source/blender/python/intern/bpy_rna_types_capi.c
+++ b/source/blender/python/intern/bpy_rna_types_capi.c
@@ -86,11 +86,11 @@ static int pyrna_WindowManager_clipboard_set(PyObject *UNUSED(self),
static struct PyMethodDef pyrna_windowmanager_methods[] = {
{"draw_cursor_add",
(PyCFunction)pyrna_callback_classmethod_add,
- METH_VARARGS | METH_STATIC,
+ METH_VARARGS | METH_CLASS,
""},
{"draw_cursor_remove",
(PyCFunction)pyrna_callback_classmethod_remove,
- METH_VARARGS | METH_STATIC,
+ METH_VARARGS | METH_CLASS,
""},
{NULL, NULL, 0, NULL},
};
@@ -147,11 +147,11 @@ PyDoc_STRVAR(pyrna_draw_handler_remove_doc,
static struct PyMethodDef pyrna_space_methods[] = {
{"draw_handler_add",
(PyCFunction)pyrna_callback_classmethod_add,
- METH_VARARGS | METH_STATIC,
+ METH_VARARGS | METH_CLASS,
pyrna_draw_handler_add_doc},
{"draw_handler_remove",
(PyCFunction)pyrna_callback_classmethod_remove,
- METH_VARARGS | METH_STATIC,
+ METH_VARARGS | METH_CLASS,
pyrna_draw_handler_remove_doc},
{NULL, NULL, 0, NULL},
};