UI: Show Selected Tool Item #111939

Merged
Harley Acheson merged 3 commits from Harley/blender:ToolSelected into main 2023-09-06 19:07:35 +02:00
1 changed files with 5 additions and 0 deletions

View File

@ -9115,6 +9115,11 @@ void ui_but_activate_event(bContext *C, ARegion *region, uiBut *but)
void ui_but_activate_over(bContext *C, ARegion *region, uiBut *but)
{
/* If there is an active button then add UI_SELECT_DRAW to the to-be-activated one. */
if (ui_region_find_active_but(CTX_wm_region(C))) {
but->flag |= UI_SELECT_DRAW;
}
button_activate_init(C, region, but, BUTTON_ACTIVATE_OVER);
}