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:
authorJacques Lucke <mail@jlucke.com>2018-10-22 16:01:25 +0300
committerJacques Lucke <mail@jlucke.com>2018-10-22 16:01:25 +0300
commit59054d5eba487a0c79661e7b8f774edc75e582e0 (patch)
treef5376bfac91fb80c38731891437e2e68dc8086ed /source/blender/python/gpu
parentc49142dafef614102ae6b1e01ffb9111ddde03d2 (diff)
Python API: fix docstrings
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r--source/blender/python/gpu/gpu_py_shader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c
index de19e8ab0cf..07a139de418 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -729,7 +729,7 @@ static PyObject *bpygpu_shader_unbind(BPyGPUShader *UNUSED(self))
}
PyDoc_STRVAR(bpygpu_shader_from_builtin_doc,
-".. function:: shader_from_builtin(shader_name)\n"
+".. function:: from_builtin(shader_name)\n"
"\n"
" :param shader_name: One of these builtin shader names: {\n"
" '2D_UNIFORM_COLOR',\n"
@@ -740,6 +740,8 @@ PyDoc_STRVAR(bpygpu_shader_from_builtin_doc,
" '3D_FLAT_COLOR',\n"
" '3D_SMOOTH_COLOR'}\n"
" :type shader_name: str\n"
+" :return: the shader object\n"
+" :rtype: bpy.types.GPUShader\n"
);
static PyObject *bpygpu_shader_from_builtin(PyObject *UNUSED(self), PyObject *arg)
{
@@ -755,7 +757,7 @@ static PyObject *bpygpu_shader_from_builtin(PyObject *UNUSED(self), PyObject *ar
}
PyDoc_STRVAR(bpygpu_shader_code_from_builtin_doc,
-".. function:: shader_code_from_builtin(shader_name)\n"
+".. function:: code_from_builtin(shader_name)\n"
"\n"
" :param shader_name: One of these builtin shader names: {\n"
" '2D_UNIFORM_COLOR',\n"