diff options
author | Ton Roosendaal <ton@blender.org> | 2005-09-28 15:05:20 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-09-28 15:05:20 +0400 |
commit | b5117eb8fd8d4d84abe41009f8be3240c187f5ff (patch) | |
tree | 8ea557d0e86fdebb100fdc65c236030cf763ed62 /source/blender/src/interface_draw.c | |
parent | c8a4f20fb8610b65b8bc5c1dd16c4d4c456632d4 (diff) |
Bugfix;
- buttons "Show" and "Key" didn't set the active constraint, causing
confusement in display for the IpoWindow
Also made the backdrop for constraints and modifiers to use the Panel
theme color, making it better integrated.
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r-- | source/blender/src/interface_draw.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index 84f200a490d..81e191ee17c 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -1830,11 +1830,15 @@ static void ui_draw_but_CHARTAB(uiBut *but) static void ui_draw_roundbox(uiBut *but) { - BIF_ThemeColorShade(but->themecol, but->a2); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glEnable(GL_BLEND); + + BIF_ThemeColorShadeAlpha(TH_PANEL, but->a2, but->a2); uiSetRoundBox(but->a1); gl_round_box(GL_POLYGON, but->x1, but->y1, but->x2, but->y2, but->min); + glDisable(GL_BLEND); } |