diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-22 16:01:25 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-22 16:01:25 +0300 |
commit | 59054d5eba487a0c79661e7b8f774edc75e582e0 (patch) | |
tree | f5376bfac91fb80c38731891437e2e68dc8086ed /source/blender/python/gpu/gpu_py_shader.c | |
parent | c49142dafef614102ae6b1e01ffb9111ddde03d2 (diff) |
Python API: fix docstrings
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 6 |
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" |