Fix: Improve node socket icon scaling group input/output list

This patch makes `widget_nodesocket` base the size of the drawn
socket icon on the rectangle that’s passed in to allow it to scale
with the rest of the interface.

Differential Revision: https://developer.blender.org/D11734
This commit is contained in:
Leon Leno
2021-10-28 14:24:42 -05:00
committed by Hans Goudey
parent 690300eb4a
commit eda8065afc

View File

@@ -3686,7 +3686,7 @@ static void widget_datasetrow(
static void widget_nodesocket(
uiBut *but, uiWidgetColors *wcol, rcti *rect, int UNUSED(state), int UNUSED(roundboxalign))
{
const int radi = 5;
const int radi = 0.25f * BLI_rcti_size_y(rect);
uiWidgetBase wtb;
widget_init(&wtb);