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>2011-12-26 16:26:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-26 16:26:11 +0400
commite17fd46c71e0401fefecf22fa8975fc5826d8fe9 (patch)
tree7c8afe24927c1dfdb5cf14a8deeb61691e1ec0c3 /source/blender/python/intern/bpy_rna_callback.c
parentf48fb385ea8dc6b12e12a6ec46a0c0b55d2dfcc4 (diff)
formatting edits only to use more consisted style
Diffstat (limited to 'source/blender/python/intern/bpy_rna_callback.c')
-rw-r--r--source/blender/python/intern/bpy_rna_callback.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c
index 134cbfda71f..7704ab2a417 100644
--- a/source/blender/python/intern/bpy_rna_callback.c
+++ b/source/blender/python/intern/bpy_rna_callback.c
@@ -56,9 +56,9 @@ static void cb_region_draw(const bContext *C, ARegion *UNUSED(ar), void *customd
bpy_context_set((bContext *)C, &gilstate);
- cb_func= PyTuple_GET_ITEM((PyObject *)customdata, 0);
- cb_args= PyTuple_GET_ITEM((PyObject *)customdata, 1);
- result= PyObject_CallObject(cb_func, cb_args);
+ cb_func = PyTuple_GET_ITEM((PyObject *)customdata, 0);
+ cb_args = PyTuple_GET_ITEM((PyObject *)customdata, 1);
+ result = PyObject_CallObject(cb_func, cb_args);
if (result) {
Py_DECREF(result);
@@ -76,7 +76,7 @@ PyObject *pyrna_callback_add(BPy_StructRNA *self, PyObject *args)
void *handle;
PyObject *cb_func, *cb_args;
- char *cb_event_str= NULL;
+ char *cb_event_str = NULL;
int cb_event;
if (!PyArg_ParseTuple(args, "OO!|s:bpy_struct.callback_add", &cb_func, &PyTuple_Type, &cb_args, &cb_event_str))
@@ -89,7 +89,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", ""},
@@ -100,10 +100,10 @@ PyObject *pyrna_callback_add(BPy_StructRNA *self, PyObject *args)
}
}
else {
- cb_event= REGION_DRAW_POST_PIXEL;
+ cb_event = REGION_DRAW_POST_PIXEL;
}
- handle= ED_region_draw_cb_activate(((ARegion *)self->ptr.data)->type, cb_region_draw, (void *)args, cb_event);
+ handle = ED_region_draw_cb_activate(((ARegion *)self->ptr.data)->type, cb_region_draw, (void *)args, cb_event);
Py_INCREF(args);
}
else {
@@ -123,15 +123,15 @@ PyObject *pyrna_callback_remove(BPy_StructRNA *self, PyObject *args)
if (!PyArg_ParseTuple(args, "O!:callback_remove", &PyCapsule_Type, &py_handle))
return NULL;
- handle= PyCapsule_GetPointer(py_handle, RNA_CAPSULE_ID);
+ handle = PyCapsule_GetPointer(py_handle, RNA_CAPSULE_ID);
- if (handle==NULL) {
+ if (handle == NULL) {
PyErr_SetString(PyExc_ValueError, "callback_remove(handle): NULL handle given, invalid or already removed");
return NULL;
}
if (RNA_struct_is_a(self->ptr.type, &RNA_Region)) {
- customdata= ED_region_draw_cb_customdata(handle);
+ customdata = ED_region_draw_cb_customdata(handle);
Py_DECREF((PyObject *)customdata);
ED_region_draw_cb_exit(((ARegion *)self->ptr.data)->type, handle);