From 90e7331d107fefb958f5d449fbe2777d989be87c Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 1 Aug 2024 19:56:32 +0200 Subject: [PATCH] Fix #125558: Show UI_BTYPE_CURVE Control Points The curve control points are almost invisible because it is missing a call to GPU_program_point_size, which allows the setting of dot size in the shader. Pull Request: https://projects.blender.org/blender/blender/pulls/125744 --- source/blender/editors/interface/interface_draw.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/interface/interface_draw.cc b/source/blender/editors/interface/interface_draw.cc index bdcb2cba33a..ca13d7b141a 100644 --- a/source/blender/editors/interface/interface_draw.cc +++ b/source/blender/editors/interface/interface_draw.cc @@ -1796,6 +1796,8 @@ void ui_draw_but_CURVE(ARegion *region, uiBut *but, const uiWidgetColors *wcol, const uint size = GPU_vertformat_attr_add(format, "size", GPU_COMP_F32, 1, GPU_FETCH_FLOAT); immBindBuiltinProgram(GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR); + GPU_program_point_size(true); + /* Calculate vertex colors based on text theme. */ float color_vert[4], color_vert_select[4]; UI_GetThemeColor4fv(TH_TEXT_HI, color_vert);