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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user