diff options
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index ad1bce89896..f2ac9b282e1 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -118,7 +118,7 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args) static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args) { wmOperatorType *ot; - int error_val = 0; + int error_val= 0; PointerRNA ptr; int operator_ret= OPERATOR_CANCELLED; @@ -132,7 +132,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args) int context= WM_OP_EXEC_DEFAULT; // XXX Todo, work out a better solution for passing on context, could make a tuple from self and pack the name and Context into it... - bContext *C = (bContext *)BPy_GetContext(); + bContext *C= (bContext *)BPy_GetContext(); if(C==NULL) { PyErr_SetString(PyExc_RuntimeError, "Context is None, cant poll any operators"); @@ -259,10 +259,10 @@ static PyObject *pyop_as_string(PyObject *UNUSED(self), PyObject *args) char *opname; PyObject *kw= NULL; /* optional args */ - int all_args = 1; + int all_args= 1; int error_val= 0; - char *buf = NULL; + char *buf= NULL; PyObject *pybuf; bContext *C= (bContext *)BPy_GetContext(); @@ -311,11 +311,11 @@ static PyObject *pyop_as_string(PyObject *UNUSED(self), PyObject *args) static PyObject *pyop_dir(PyObject *UNUSED(self)) { - PyObject *list = PyList_New(0), *name; + PyObject *list= PyList_New(0), *name; wmOperatorType *ot; for(ot= WM_operatortype_first(); ot; ot= ot->next) { - name = PyUnicode_FromString(ot->idname); + name= PyUnicode_FromString(ot->idname); PyList_Append(list, name); Py_DECREF(name); } @@ -353,7 +353,7 @@ static PyObject *pyop_getrna(PyObject *UNUSED(self), PyObject *value) return (PyObject *)pyrna; } -static struct PyMethodDef bpy_ops_methods[] = { +static struct PyMethodDef bpy_ops_methods[]= { {"poll", (PyCFunction) pyop_poll, METH_VARARGS, NULL}, {"call", (PyCFunction) pyop_call, METH_VARARGS, NULL}, {"as_string", (PyCFunction) pyop_as_string, METH_VARARGS, NULL}, @@ -363,7 +363,7 @@ static struct PyMethodDef bpy_ops_methods[] = { {NULL, NULL, 0, NULL} }; -static struct PyModuleDef bpy_ops_module = { +static struct PyModuleDef bpy_ops_module= { PyModuleDef_HEAD_INIT, "_bpy.ops", NULL, |