[Bf-blender-cvs] [9189191c5b1] master: Fix errors in 'gpu.state' documentation

Germano Cavalcante noreply at git.blender.org
Mon Feb 21 03:31:47 CET 2022


Commit: 9189191c5b1665ae91a4a9582bd4ff762e44072b
Author: Germano Cavalcante
Date:   Sun Feb 20 23:31:08 2022 -0300
Branches: master
https://developer.blender.org/rB9189191c5b1665ae91a4a9582bd4ff762e44072b

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 059e6ceb749..e3ffd3cc823 100644
--- a/source/blender/python/gpu/gpu_py_state.c
+++ b/source/blender/python/gpu/gpu_py_state.c
@@ -151,7 +151,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");
@@ -179,7 +179,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