[Bf-blender-cvs] [323997ace39] temp-ui-tweaks: UI: Disable emboss on box widgets

Pablo Vazquez noreply at git.blender.org
Sat Aug 28 02:21:32 CEST 2021


Commit: 323997ace3911d1a8d6888d303345075d2d29948
Author: Pablo Vazquez
Date:   Sat Aug 28 01:48:55 2021 +0200
Branches: temp-ui-tweaks
https://developer.blender.org/rB323997ace3911d1a8d6888d303345075d2d29948

UI: Disable emboss on box widgets

These are meant to be contour for an area flush with the background,
having emboss hardcoded on the widget prevents this.

===================================================================

M	source/blender/editors/interface/interface_widgets.c

===================================================================

diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 113cb806f02..d6c0b4f4f5f 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -4247,6 +4247,7 @@ static void widget_box(
   const float rad = wcol->roundness * U.widget_unit;
   round_box_edges(&wtb, roundboxalign, rect, rad);
 
+  wtb.draw_emboss = false;
   widgetbase_draw(&wtb, wcol);
 
   copy_v3_v3_uchar(wcol->inner, old_col);



More information about the Bf-blender-cvs mailing list