UI: Hide widget emboss if inner color is fully transparent #111980
|
@ -1269,8 +1269,8 @@ static void widgetbase_draw_ex(uiWidgetBase *wtb,
|
|||
outline_col[2] = wcol->outline[2];
|
||||
outline_col[3] = wcol->outline[3];
|
||||
|
||||
/* emboss bottom shadow */
|
||||
if (wtb->draw_emboss) {
|
||||
/* Emboss shadow if enabled, and inner and outline colors are not fully transparent. */
|
||||
if ((wtb->draw_emboss) && (wcol->inner[3] != 0.0f || wcol->outline[3] != 0.0f)) {
|
||||
UI_GetThemeColor4ubv(TH_WIDGET_EMBOSS, emboss_col);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue