UI: fix misaligned eyedropper icon in button.

Differential Revision: https://developer.blender.org/D4183
This commit is contained in:
Harley Acheson 2019-01-14 15:02:49 +01:00 committed by Brecht Van Lommel
parent 06f7b6827d
commit 1af9599aca
1 changed files with 1 additions and 0 deletions

View File

@ -476,6 +476,7 @@ static void ui_block_colorpicker(
bt = uiDefIconButO(
block, UI_BTYPE_BUT, "UI_OT_eyedropper_color", WM_OP_INVOKE_DEFAULT, ICON_EYEDROPPER,
butwidth + 10, yco, UI_UNIT_X, UI_UNIT_Y, NULL);
UI_but_drawflag_disable(bt, UI_BUT_ICON_LEFT);
UI_but_func_set(bt, ui_popup_close_cb, bt, NULL);
bt->custom_data = cpicker;
}