[Bf-blender-cvs] [645fc0c7679] master: Fix build error on windows

Richard Antalik noreply at git.blender.org
Wed Mar 31 09:51:33 CEST 2021


Commit: 645fc0c7679423667eb25a77bbd8fb2626d71080
Author: Richard Antalik
Date:   Wed Mar 31 09:46:38 2021 +0200
Branches: master
https://developer.blender.org/rB645fc0c7679423667eb25a77bbd8fb2626d71080

Fix build error on windows

Error was caused by using `#if` directive in `PyDoc_STRVAR` macro.

This partially reverts 1e4c35d910e18858c41924f9e27ef8e1070cbd0a

===================================================================

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 e99fc91ac4c..6b0fade8d1c 100644
--- a/source/blender/python/gpu/gpu_py_state.c
+++ b/source/blender/python/gpu/gpu_py_state.c
@@ -96,11 +96,9 @@ PyDoc_STRVAR(
     "      * ``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
+    //"      * ``OIT``.\n"
+    //"      * ``BACKGROUND`` .\n"
+    //"      * ``CUSTOM`` .\n"
     "   :type mode: str\n");
 static PyObject *pygpu_state_blend_set(PyObject *UNUSED(self), PyObject *value)
 {



More information about the Bf-blender-cvs mailing list