Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_select.c
| Show All 25 Lines | |||||
| /** \name Methods | /** \name Methods | ||||
| * \{ */ | * \{ */ | ||||
| PyDoc_STRVAR(pygpu_select_load_id_doc, | PyDoc_STRVAR(pygpu_select_load_id_doc, | ||||
| ".. function:: load_id(id)\n" | ".. function:: load_id(id)\n" | ||||
| "\n" | "\n" | ||||
| " Set the selection ID.\n" | " Set the selection ID.\n" | ||||
| "\n" | "\n" | ||||
| " :param id: Number (32-bit uint).\n" | " :arg id: Number (32-bit uint).\n" | ||||
| " :type select: int\n"); | " :type select: int\n"); | ||||
| static PyObject *pygpu_select_load_id(PyObject *UNUSED(self), PyObject *value) | static PyObject *pygpu_select_load_id(PyObject *UNUSED(self), PyObject *value) | ||||
| { | { | ||||
| uint id; | uint id; | ||||
| if ((id = PyC_Long_AsU32(value)) == (uint)-1) { | if ((id = PyC_Long_AsU32(value)) == (uint)-1) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| GPU_select_load_id(id); | GPU_select_load_id(id); | ||||
| Show All 33 Lines | |||||