Node headers should not respect theme alpha values

As pointed out in https://developer.blender.org/rB558d7dd90e56ca1b4dbf1b7b8b7b555791821148,
the theme color alpha should not be taken into account when rendering node headers.

Reviewed By: Brecht Van Lommel

Differential Revision: https://developer.blender.org/D4338
This commit is contained in:
Sebastian Parborg 2019-02-20 14:35:27 +01:00
parent b285f92d80
commit a1bd25af72
1 changed files with 2 additions and 2 deletions

View File

@ -893,11 +893,11 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
/* header uses color from backdrop, but we make it opaque */
if (color_id == TH_NODE) {
UI_GetThemeColorShade3fv(color_id, -20, color);
color[3] = 1.0f;
}
else {
UI_GetThemeColor4fv(color_id, color);
UI_GetThemeColor3fv(color_id, color);
}
color[3] = 1.0f;
}
GPU_line_width(1.0f);