diff options
author | Julian Eisel <julian@blender.org> | 2020-09-18 18:18:31 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-18 19:05:32 +0300 |
commit | ce558a46c103cfdc99972ff3e06a430f28874757 (patch) | |
tree | 3ded18b5c90bf65a9dc516b4d79c3db62bd6c0a1 | |
parent | 0cac3c79cc2298c5a704ec7b55a96292793f49b8 (diff) |
UI: Correct superimposed icon interaction hotspot
The hotspot was slighly too large, which could be apparent in cases
where there are multiple superimposed icons.
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |