[Bf-blender-cvs] [b2d9020aa5d] master: Fix T77340: nested nodes alpha issues

Jacques Lucke noreply at git.blender.org
Mon Aug 17 12:35:10 CEST 2020


Commit: b2d9020aa5d9a6a98cc89a8b5fbd69b12e99d8c5
Author: Jacques Lucke
Date:   Mon Aug 17 12:34:49 2020 +0200
Branches: master
https://developer.blender.org/rBb2d9020aa5d9a6a98cc89a8b5fbd69b12e99d8c5

Fix T77340: nested nodes alpha issues

Reviewers: Severin

Differential Revision: https://developer.blender.org/D8573

===================================================================

M	source/blender/editors/space_node/node_draw.c

===================================================================

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,



More information about the Bf-blender-cvs mailing list