[Bf-blender-cvs] [eda8065afcf] blender-v3.0-release: Fix: Improve node socket icon scaling group input/output list
Leon Leno
noreply at git.blender.org
Thu Oct 28 21:24:59 CEST 2021
Commit: eda8065afcf27a8dc4df9b273815a39eea347415
Author: Leon Leno
Date: Thu Oct 28 14:24:42 2021 -0500
Branches: blender-v3.0-release
https://developer.blender.org/rBeda8065afcf27a8dc4df9b273815a39eea347415
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
===================================================================
M source/blender/editors/interface/interface_widgets.c
===================================================================
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index acff14488a6..3e9042d29a0 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -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);
More information about the Bf-blender-cvs
mailing list