[Bf-blender-cvs] [75be58c63db] blender-v3.1-release: Fix errors in 'gpu.state' documentation
Germano Cavalcante
noreply at git.blender.org
Tue Feb 22 01:54:08 CET 2022
Commit: 75be58c63db4ecc365e56d7546e089494c3d2da0
Author: Germano Cavalcante
Date: Sun Feb 20 23:31:08 2022 -0300
Branches: blender-v3.1-release
https://developer.blender.org/rB75be58c63db4ecc365e56d7546e089494c3d2da0
Fix errors in 'gpu.state' documentation
`blend_depth_test_get` --> `depth_test_get`
`depth_mask_set_get` --> `depth_mask_get`
Thanks to @SBCV for pointing out these inconsistencies.
===================================================================
M source/blender/python/gpu/gpu_py_state.c
===================================================================
diff --git a/source/blender/python/gpu/gpu_py_state.c b/source/blender/python/gpu/gpu_py_state.c
index 746074f0706..17b350deb14 100644
--- a/source/blender/python/gpu/gpu_py_state.c
+++ b/source/blender/python/gpu/gpu_py_state.c
@@ -165,7 +165,7 @@ static PyObject *pygpu_state_depth_test_set(PyObject *UNUSED(self), PyObject *va
}
PyDoc_STRVAR(pygpu_state_depth_test_get_doc,
- ".. function:: blend_depth_test_get()\n"
+ ".. function:: depth_test_get()\n"
"\n"
" Current depth_test equation.\n"
"\n");
@@ -193,7 +193,7 @@ static PyObject *pygpu_state_depth_mask_set(PyObject *UNUSED(self), PyObject *va
}
PyDoc_STRVAR(pygpu_state_depth_mask_get_doc,
- ".. function:: depth_mask_set_get()\n"
+ ".. function:: depth_mask_get()\n"
"\n"
" Writing status in the depth component.\n");
static PyObject *pygpu_state_depth_mask_get(PyObject *UNUSED(self))
More information about the Bf-blender-cvs
mailing list