2.5: Texture buttons preview now has an option to display the

texture, the material, or both side by side.
This commit is contained in:
2009-07-21 01:57:46 +00:00
parent 6dfec894f9
commit 22f421a9ee
11 changed files with 158 additions and 63 deletions

View File

@@ -2052,11 +2052,11 @@ static void widget_draw_extra_mask(const bContext *C, uiBut *but, uiWidgetType *
if(but->block->drawextra) {
/* note: drawextra can change rect +1 or -1, to match round errors of existing previews */
but->block->drawextra(C, but->poin, rect);
but->block->drawextra(C, but->poin, but->block->drawextra_arg, rect);
/* make mask to draw over image */
UI_GetThemeColor3ubv(TH_BACK, col);
glColor3ubv(col);
glColor3ubv((unsigned char*)col);
round_box__edges(&wtb, 15, rect, 0.0f, 4.0);
widgetbase_outline(&wtb);