diff options
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index 762ec541bff..e6e5cb198aa 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -736,6 +736,8 @@ void ui_draw_but_COLORBAND(uiBut *but, uiWidgetColors *wcol, rcti *rect) for( a = 1; a < sizex; a++ ) { pos = ((float)a) / (sizex-1); do_colorband( coba, pos, colf ); + if (but->block->color_profile != BLI_PR_NONE) + linearrgb_to_srgb_v3_v3(colf, colf); v1[0]=v2[0]= x1 + a; |