UI: don't align popover buttons with opened popovers

Differential Revision: https://developer.blender.org/D5890
This commit is contained in:
Yevgeny Makarov 2019-10-01 19:34:03 +02:00 committed by Brecht Van Lommel
parent b1b4e00076
commit 9cda01caf7
1 changed files with 1 additions and 1 deletions

View File

@ -4521,7 +4521,7 @@ static int widget_roundbox_set(uiBut *but, rcti *rect)
}
/* align with open menu */
if (but->active && (but->type != UI_BTYPE_POPOVER)) {
if (but->active && (but->type != UI_BTYPE_POPOVER) && !ui_but_menu_draw_as_popover(but)) {
int direction = ui_but_menu_direction(but);
if (direction == UI_DIR_UP) {