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:
parent
769ec7ffe6
commit
b313710c10
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue