diff options
Diffstat (limited to 'source/blender/python/intern/bpy_rna_callback.c')
-rw-r--r-- | source/blender/python/intern/bpy_rna_callback.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c index a455a588c04..20f5c6c522e 100644 --- a/source/blender/python/intern/bpy_rna_callback.c +++ b/source/blender/python/intern/bpy_rna_callback.c @@ -22,8 +22,15 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file blender/python/intern/bpy_rna_callback.c + * \ingroup pythonintern + */ + + #include <Python.h> +#include "RNA_types.h" + #include "bpy_rna.h" #include "bpy_rna_callback.h" #include "bpy_util.h" @@ -32,6 +39,8 @@ #include "DNA_screen_types.h" +#include "RNA_access.h" + #include "BKE_context.h" #include "ED_space_api.h" @@ -48,7 +57,7 @@ static void cb_region_draw(const bContext *C, ARegion *UNUSED(ar), void *customd cb_func= PyTuple_GET_ITEM((PyObject *)customdata, 0); cb_args= PyTuple_GET_ITEM((PyObject *)customdata, 1); - result = PyObject_CallObject(cb_func, cb_args); + result= PyObject_CallObject(cb_func, cb_args); if(result) { Py_DECREF(result); @@ -79,7 +88,7 @@ PyObject *pyrna_callback_add(BPy_StructRNA *self, PyObject *args) if(RNA_struct_is_a(self->ptr.type, &RNA_Region)) { if(cb_event_str) { - static EnumPropertyItem region_draw_mode_items[] = { + static EnumPropertyItem region_draw_mode_items[]= { {REGION_DRAW_POST_PIXEL, "POST_PIXEL", 0, "Post Pixel", ""}, {REGION_DRAW_POST_VIEW, "POST_VIEW", 0, "Post View", ""}, {REGION_DRAW_PRE_VIEW, "PRE_VIEW", 0, "Pre View", ""}, |