UI: don't highlight number button while dragging

This commit is contained in:
2018-04-27 22:25:54 +02:00
parent e97ab28a03
commit bb513b173e

View File

@@ -4174,7 +4174,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) {
if (!data || (data->state == BUTTON_STATE_NUM_EDITING)) {
return;
}