Revert "UI: don't highlight number button while dragging"

This reverts commit bb513b173e.

Broke click events.
This commit is contained in:
2018-04-28 12:19:42 +02:00
parent e1417c665d
commit 69ca12c45c

View File

@@ -4171,7 +4171,7 @@ static void ui_numedit_set_active(uiBut *but)
but->drawflag &= ~(UI_BUT_ACTIVE_LEFT | UI_BUT_ACTIVE_RIGHT);
uiHandleButtonData *data = but->active;
if (!data || (data->state == BUTTON_STATE_NUM_EDITING)) {
if (!data) {
return;
}