diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-17 13:34:49 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-17 13:34:49 +0300 |
commit | b2d9020aa5d9a6a98cc89a8b5fbd69b12e99d8c5 (patch) | |
tree | b8996e8a91bbd2d99dfefe71d1c9d94440407306 /source/blender/editors/space_node/node_draw.c | |
parent | 68651534c26346015a70775aef1fdadab2946fb6 (diff) |
Fix T77340: nested nodes alpha issues
Reviewers: Severin
Differential Revision: https://developer.blender.org/D8573
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 3fd0b0a5a58..9d048bf7c3c 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -978,23 +978,8 @@ static void node_toggle_button_cb(struct bContext *C, void *node_argv, void *op_ void node_draw_shadow(SpaceNode *snode, bNode *node, float radius, float alpha) { rctf *rct = &node->totr; - UI_draw_roundbox_corner_set(UI_CNR_ALL); - if (node->parent == NULL) { - ui_draw_dropshadow(rct, radius, snode->aspect, alpha, node->flag & SELECT); - } - else { - const float margin = 3.0f; - - const float color[4] = {0.0f, 0.0f, 0.0f, 0.33f}; - UI_draw_roundbox_aa(true, - rct->xmin - margin, - rct->ymin - margin, - rct->xmax + margin, - rct->ymax + margin, - radius + margin, - color); - } + ui_draw_dropshadow(rct, radius, snode->aspect, alpha, node->flag & SELECT); } void node_draw_sockets(View2D *v2d, |