[Bf-blender-cvs] [3f627c38a2b] master: Fix test cases by reducing the severity of the bgl error message to warning.

Jeroen Bakker noreply at git.blender.org
Thu Jan 19 08:26:04 CET 2023


Commit: 3f627c38a2bc4aff0cd44155ee043bd09ba5f283
Author: Jeroen Bakker
Date:   Thu Jan 19 08:25:28 2023 +0100
Branches: master
https://developer.blender.org/rB3f627c38a2bc4aff0cd44155ee043bd09ba5f283

Fix test cases by reducing the severity of the bgl error message to warning.

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

M	source/blender/python/generic/bgl.c

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

diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c
index c77dabfb539..f62f427542d 100644
--- a/source/blender/python/generic/bgl.c
+++ b/source/blender/python/generic/bgl.c
@@ -2644,9 +2644,9 @@ PyObject *BPyInit_bgl(void)
   }
 
   if (GPU_backend_get_type() != GPU_BACKEND_OPENGL) {
-    CLOG_ERROR(&LOG,
-               "'bgl' imported without an OpenGL backend. Please update your add-ons to use the "
-               "'gpu' module. In Blender 3.7 'bgl' will be removed.");
+    CLOG_WARN(&LOG,
+              "'bgl' imported without an OpenGL backend. Please update your add-ons to use the "
+              "'gpu' module. In Blender 3.7 'bgl' will be removed.");
   }
 
   PyModule_AddObject(submodule, "Buffer", (PyObject *)&BGL_bufferType);



More information about the Bf-blender-cvs mailing list