From 0cb5abd7f71c5c6723b48f5d0a98f5bc9fb64b07 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 8 Jul 2022 20:06:10 -0700 Subject: [PATCH] Fix highlight on route again Added a clarifying comment that will hopefully keep the required code block in place --- pcbnew/router/pns_tool_base.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/router/pns_tool_base.cpp b/pcbnew/router/pns_tool_base.cpp index 7e14f15685..082f58704c 100644 --- a/pcbnew/router/pns_tool_base.cpp +++ b/pcbnew/router/pns_tool_base.cpp @@ -235,9 +235,9 @@ void TOOL_BASE::highlightNet( bool aEnabled, int aNetcode ) m_startHighlight = false; } - // At best this messes up blind/buried via colors. But net highlighting isn't done with - // layers, so I'm not sure why it's here to start with. - // getView()->UpdateAllLayersColor(); + // Do not remove this call. This is required to update the layers when we highlight a net. + // In this case, highlighting a net dims all other elements, so the colors need to update + getView()->UpdateAllLayersColor(); }