Fix T77340: nested nodes alpha issues
Reviewers: Severin Differential Revision: https://developer.blender.org/D8573
This commit is contained in:
parent
68651534c2
commit
b2d9020aa5
Notes:
blender-bot
2024-04-29 13:07:32 +02:00
Referenced by issue #77340, Nested frame nodes alpha issue
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue