diff options
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 1f19374be17..aaf37a1e9ef 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -775,9 +775,12 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN /* shadow */ node_draw_shadow(snode, node, BASIS_RAD, 1.0f); - /* header */ - if (color_id == TH_NODE) - UI_ThemeColorShade(color_id, -20); + /* header uses color from backdrop, but we make it opaqie */ + if (color_id == TH_NODE) { + float col[3]; + UI_GetThemeColorShade3fv(color_id, -20, col); + glColor4f(col[0], col[1], col[2], 1.0f); + } else UI_ThemeColor(color_id); |