From 7add4e177b6ca872947d7c696cd3557b6493e661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 12 Jun 2025 18:20:40 +0200 Subject: [PATCH] GPU: Add deprecation notice to the docstring of GPUShader constructor --- source/blender/python/gpu/gpu_py_shader.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/python/gpu/gpu_py_shader.cc b/source/blender/python/gpu/gpu_py_shader.cc index 85f5ecc9062..e9b4a87bc0f 100644 --- a/source/blender/python/gpu/gpu_py_shader.cc +++ b/source/blender/python/gpu/gpu_py_shader.cc @@ -929,6 +929,8 @@ PyDoc_STRVAR( ".. class:: GPUShader(vertexcode, fragcode, geocode=None, libcode=None, defines=None, " "name='pyGPUShader')\n" "\n" + " Deprecated, use gpu.shader.create_from_info(shader_info) instead.\n" + "\n" " GPUShader combines multiple GLSL shaders into a program used for drawing.\n" " It must contain at least a vertex and fragment shaders.\n" "\n"