From 2aae3c4ec7b8270bb3ddda964b365af540cb0087 Mon Sep 17 00:00:00 2001 From: youle31 Date: Mon, 4 Aug 2025 08:52:02 +0200 Subject: [PATCH] Fix #143490: Missing uniform for POLYLINE_UNIFORM_COLOR gpu python API Add vec4 color as uniform in PYDOC_BUILTIN_SHADER_DESCRIPTION for POLYLINE_UNIFORM_COLOR builtin shader in accordance with gpu_shader_3D_polyline_info.hh. Pull Request: https://projects.blender.org/blender/blender/pulls/143703 --- source/blender/python/gpu/gpu_py_shader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/gpu/gpu_py_shader.cc b/source/blender/python/gpu/gpu_py_shader.cc index d2c6f2c59d4..7b53793ede4 100644 --- a/source/blender/python/gpu/gpu_py_shader.cc +++ b/source/blender/python/gpu/gpu_py_shader.cc @@ -59,7 +59,7 @@ " :Uniforms: vec2 viewportSize, float lineWidth\n" \ "``POLYLINE_UNIFORM_COLOR``\n" \ " :Attributes: vec3 pos\n" \ - " :Uniforms: vec2 viewportSize, float lineWidth\n" \ + " :Uniforms: vec2 viewportSize, float lineWidth, vec4 color\n" \ "``POINT_FLAT_COLOR``\n" \ " :Attributes: vec3 pos, vec4 color\n" \ " :Uniforms: float size\n" \