Fix [#20744] Turning on Shading in Themes adversely affects display of color swatches
authorMatt Ebb <matt@mke3.net>
Thu, 21 Jan 2010 05:14:05 +0000 (05:14 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 21 Jan 2010 05:14:05 +0000 (05:14 +0000)
source/blender/editors/interface/interface_widgets.c

index d9219fe..a3c754c 100644 (file)
@@ -2149,6 +2149,7 @@ static void widget_swatch(uiBut *but, uiWidgetColors *wcol, rcti *rect, int stat
        wcol->inner[0]= FTOCHAR(col[0]);
        wcol->inner[1]= FTOCHAR(col[1]);
        wcol->inner[2]= FTOCHAR(col[2]);
+       wcol->shaded = 0;
        
        widgetbase_draw(&wtb, wcol);