UI: Hide widget emboss if inner color is fully transparent #111980

Merged
Pablo Vazquez merged 2 commits from pablovazquez/blender:ui-widget-emboss-alpha into main 2023-09-06 17:53:51 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}