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:
Diffstat (limited to 'source/blender/python/gpu/gpu_py_element.c')
-rw-r--r--source/blender/python/gpu/gpu_py_element.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/python/gpu/gpu_py_element.c b/source/blender/python/gpu/gpu_py_element.c
index c85d6dfbe3b..10990abc5e6 100644
--- a/source/blender/python/gpu/gpu_py_element.c
+++ b/source/blender/python/gpu/gpu_py_element.c
@@ -196,20 +196,20 @@ static void bpygpu_IndexBuf_dealloc(BPyGPUIndexBuf *self)
}
PyDoc_STRVAR(py_gpu_element_doc,
-"GPUIndexBuf(type, seq)\n"
+".. class:: GPUIndexBuf(type, seq)\n"
"\n"
-"Contains an index buffer."
+" Contains an index buffer. \n"
"\n"
-" :param type:\n"
-" One of these primitive types: {\n"
+" :param type: One of these primitive types: {\n"
" `POINTS`,\n"
" `LINES`,\n"
" `TRIS`,\n"
" `LINE_STRIP_ADJ` }\n"
-" :type type: :class:`str`\n"
-" :param seq: Indices this index buffer will contain.\n"
-" :type buf: 1D or 2D sequence, depending on the type. \n"
-" Optionally the sequence can support the buffer protocol. \n"
+" :type type: `str`\n"
+" :param seq: Indices this index buffer will contain. \n"
+" Whether a 1D or 2D sequence is required depends on the type. \n"
+" Optionally the sequence can support the buffer protocol. \n"
+" :type seq: 1D or 2D sequence \n"
);
PyTypeObject BPyGPUIndexBuf_Type = {
PyVarObject_HEAD_INIT(NULL, 0)