[Bf-blender-cvs] [85ca4e33a64] temp-geometry-nodes-fields-prototype-visualization: disable other link highlights

Jacques Lucke noreply at git.blender.org
Tue Aug 24 14:47:20 CEST 2021


Commit: 85ca4e33a64fcff958c50289d049be40b761b278
Author: Jacques Lucke
Date:   Tue Aug 24 14:47:09 2021 +0200
Branches: temp-geometry-nodes-fields-prototype-visualization
https://developer.blender.org/rB85ca4e33a64fcff958c50289d049be40b761b278

disable other link highlights

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

M	source/blender/editors/space_node/drawnode.cc

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

diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc
index 732db4a78eb..4a4a12a9e89 100644
--- a/source/blender/editors/space_node/drawnode.cc
+++ b/source/blender/editors/space_node/drawnode.cc
@@ -4281,7 +4281,7 @@ void node_draw_link(View2D *v2d, SpaceNode *snode, bNodeLink *link)
     if (link->flag & NODE_LINK_VALID) {
       /* special indicated link, on drop-node */
       if (link->flag & NODE_LINKFLAG_HILITE) {
-        th_col1 = th_col2 = TH_ACTIVE;
+        // th_col1 = th_col2 = TH_ACTIVE;
       }
       else if (link->flag & NODE_LINK_MUTED) {
         th_col1 = th_col2 = TH_REDALERT;
@@ -4289,10 +4289,10 @@ void node_draw_link(View2D *v2d, SpaceNode *snode, bNodeLink *link)
       else {
         /* Regular link, highlight if connected to selected node. */
         if (link->fromnode && link->fromnode->flag & SELECT) {
-          th_col1 = TH_EDGE_SELECT;
+          // th_col1 = TH_EDGE_SELECT;
         }
         if (link->tonode && link->tonode->flag & SELECT) {
-          th_col2 = TH_EDGE_SELECT;
+          // th_col2 = TH_EDGE_SELECT;
         }
       }
     }



More information about the Bf-blender-cvs mailing list