Fix incorrect text clipping on node link button in material properties.

This commit is contained in:
Brecht Van Lommel 2018-02-24 17:15:16 +01:00
parent 15dfd866db
commit ec27281812
1 changed files with 1 additions and 0 deletions

View File

@ -1555,6 +1555,7 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
rcti temp = *rect;
temp.xmin = rect->xmax - BLI_rcti_size_y(rect) - 1;
widget_draw_icon(but, ICON_LAYER_USED, alpha, &temp, false);
rect->xmax = temp.xmin;
}
/* If there's an icon too (made with uiDefIconTextBut) then draw the icon