diff options
Diffstat (limited to 'source/blender/python/gpu/gpu_py_select.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_select.c | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/source/blender/python/gpu/gpu_py_select.c b/source/blender/python/gpu/gpu_py_select.c index 0744d6b26ba..21832b58015 100644 --- a/source/blender/python/gpu/gpu_py_select.c +++ b/source/blender/python/gpu/gpu_py_select.c @@ -41,21 +41,20 @@ * \{ */ PyDoc_STRVAR(bpygpu_select_load_id_doc, -"load_id(id)\n" -"\n" -" Set the selection ID.\n" -"\n" -" :param id: Number (32-bit unsigned int).\n" -" :type select: int\n" -); + "load_id(id)\n" + "\n" + " Set the selection ID.\n" + "\n" + " :param id: Number (32-bit unsigned int).\n" + " :type select: int\n"); static PyObject *bpygpu_select_load_id(PyObject *UNUSED(self), PyObject *value) { - uint id; - if ((id = PyC_Long_AsU32(value)) == (uint)-1) { - return NULL; - } - GPU_select_load_id(id); - Py_RETURN_NONE; + uint id; + if ((id = PyC_Long_AsU32(value)) == (uint)-1) { + return NULL; + } + GPU_select_load_id(id); + Py_RETURN_NONE; } /** \} */ @@ -64,28 +63,26 @@ static PyObject *bpygpu_select_load_id(PyObject *UNUSED(self), PyObject *value) * \{ */ static struct PyMethodDef bpygpu_select_methods[] = { - /* Manage Stack */ - {"load_id", (PyCFunction)bpygpu_select_load_id, METH_O, bpygpu_select_load_id_doc}, - {NULL, NULL, 0, NULL}, + /* Manage Stack */ + {"load_id", (PyCFunction)bpygpu_select_load_id, METH_O, bpygpu_select_load_id_doc}, + {NULL, NULL, 0, NULL}, }; -PyDoc_STRVAR(bpygpu_select_doc, -"This module provides access to selection." -); +PyDoc_STRVAR(bpygpu_select_doc, "This module provides access to selection."); static PyModuleDef BPyGPU_select_module_def = { - PyModuleDef_HEAD_INIT, - .m_name = "gpu.select", - .m_doc = bpygpu_select_doc, - .m_methods = bpygpu_select_methods, + PyModuleDef_HEAD_INIT, + .m_name = "gpu.select", + .m_doc = bpygpu_select_doc, + .m_methods = bpygpu_select_methods, }; PyObject *BPyInit_gpu_select(void) { - PyObject *submodule; + PyObject *submodule; - submodule = PyModule_Create(&BPyGPU_select_module_def); + submodule = PyModule_Create(&BPyGPU_select_module_def); - return submodule; + return submodule; } /** \} */ |