UI: Increase Size of Curve Control Points #125786

Merged
Harley Acheson merged 1 commits from Harley/blender:CurveControlPointSize into main 2024-08-01 20:52:00 +02:00

View File

@ -1811,7 +1811,8 @@ void ui_draw_but_CURVE(ARegion *region, uiBut *but, const uiWidgetColors *wcol,
}
cmp = cuma->curve;
const float point_size = max_ff(1.0f, min_ff(UI_SCALE_FAC / but->block->aspect * 4.0f, 4.0f));
const float point_size = max_ff(U.pixelsize * 3.0f,
min_ff(UI_SCALE_FAC / but->block->aspect * 6.0f, 20.0f));
immBegin(GPU_PRIM_POINTS, cuma->totpoint);
for (int a = 0; a < cuma->totpoint; a++) {
const float fx = rect->xmin + zoomx * (cmp[a].x - offsx);