From ce558a46c103cfdc99972ff3e06a430f28874757 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 18 Sep 2020 17:18:31 +0200 Subject: [PATCH] UI: Correct superimposed icon interaction hotspot The hotspot was slighly too large, which could be apparent in cases where there are multiple superimposed icons. --- source/blender/editors/interface/interface_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index c7f941c9c9a..eb0d18956d9 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -4156,7 +4156,7 @@ static uiButExtraOpIcon *ui_but_extra_operator_icon_mouse_over_get(uiBut *but, const wmEvent *event) { float xmax = but->rect.xmax; - const float icon_size = BLI_rctf_size_y(&but->rect); + const float icon_size = 0.8f * BLI_rctf_size_y(&but->rect); /* ICON_SIZE_FROM_BUTRECT */ int x = event->x, y = event->y; ui_window_to_block(data->region, but->block, &x, &y);