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:
authorCampbell Barton <ideasman42@gmail.com>2021-03-31 09:42:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-31 09:42:21 +0300
commit1e4c35d910e18858c41924f9e27ef8e1070cbd0a (patch)
tree1089cb465254dd4ee05e8af727cebeb8f2d3d33d
parentb547ac32d94e988a5514dc1e79f2d7181a5385d5 (diff)
PyDoc: correct sphinx syntax for gpu.state.blend_set
-rw-r--r--source/blender/python/gpu/gpu_py_state.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/source/blender/python/gpu/gpu_py_state.c b/source/blender/python/gpu/gpu_py_state.c
index 110f5a6ff55..e99fc91ac4c 100644
--- a/source/blender/python/gpu/gpu_py_state.c
+++ b/source/blender/python/gpu/gpu_py_state.c
@@ -85,19 +85,22 @@ PyDoc_STRVAR(
" Defines the fixed pipeline blending equation.\n"
"\n"
" :param mode: The type of blend mode.\n"
- " * ``NONE`` No blending.\n"
- " * ``ALPHA`` The original color channels are interpolated according to the alpha value.\n"
- " * ``ALPHA_PREMULT`` The original color channels are interpolated according to the alpha "
- "value with the new colors pre-multiplied by this value.\n"
- " * ``ADDITIVE`` The original color channels are added by the corresponding ones.\n"
- " * ``ADDITIVE_PREMULT`` The original color channels are added by the corresponding ones "
+ " * ``NONE`` No blending.\n"
+ " * ``ALPHA`` The original color channels are interpolated according to the alpha "
+ "value.\n"
+ " * ``ALPHA_PREMULT`` The original color channels are interpolated according to the "
+ "alpha value with the new colors pre-multiplied by this value.\n"
+ " * ``ADDITIVE`` The original color channels are added by the corresponding ones.\n"
+ " * ``ADDITIVE_PREMULT`` The original color channels are added by the corresponding ones "
"that are pre-multiplied by the alpha value.\n"
- " * ``MULTIPLY`` The original color channels are multiplied by the corresponding ones.\n"
- " * ``SUBTRACT`` The original color channels are subtracted by the corresponding ones.\n"
- " * ``INVERT`` The original color channels are replaced by its complementary color.\n"
- //" * ``OIT``.\n"
- //" * ``BACKGROUND`` .\n"
- //" * ``CUSTOM`` .\n"
+ " * ``MULTIPLY`` The original color channels are multiplied by the corresponding ones.\n"
+ " * ``SUBTRACT`` The original color channels are subtracted by the corresponding ones.\n"
+ " * ``INVERT`` The original color channels are replaced by its complementary color.\n"
+#if 0
+ " * ``OIT``.\n"
+ " * ``BACKGROUND`` .\n"
+ " * ``CUSTOM`` .\n"
+#endif
" :type mode: str\n");
static PyObject *pygpu_state_blend_set(PyObject *UNUSED(self), PyObject *value)
{