Fix padding when multi-editing aligned widgets

Similar to T58668, labels were not aligned when multi-editing widgets
that are not center-aligned.

Reviewed by: Hans Goudey, Julian Eisel

Differential Revision: https://developer.blender.org/D8441
This commit is contained in:
Red Mser 2020-08-06 13:29:59 +02:00 committed by Julian Eisel
parent 769ec7ffe6
commit b313710c10
1 changed files with 1 additions and 1 deletions

View File

@ -2403,7 +2403,7 @@ static void widget_draw_text_icon(const uiFontStyle *fstyle,
}
else if (but->flag & UI_BUT_DRAG_MULTI) {
bool text_is_edited = ui_but_drag_multi_edit_get(but) != NULL;
if (text_is_edited) {
if (text_is_edited || (but->drawflag & UI_BUT_TEXT_LEFT)) {
rect->xmin += text_padding;
}
}