mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Prevent lines from drawing on netclass layer
Only wires and busses get netclasses Fixes https://gitlab.com/kicad/code/kicad/issues/21731
This commit is contained in:
parent
733a379ca3
commit
5fdfff2b9c
@ -198,8 +198,11 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const
|
||||
|
||||
std::vector<int> SCH_LINE::ViewGetLayers() const
|
||||
{
|
||||
if( IsWire() || IsBus() )
|
||||
return { LAYER_DANGLING, m_layer, LAYER_SELECTION_SHADOWS, LAYER_NET_COLOR_HIGHLIGHT,
|
||||
LAYER_OP_VOLTAGES };
|
||||
|
||||
return { LAYER_DANGLING, m_layer, LAYER_SELECTION_SHADOWS, LAYER_OP_VOLTAGES };
|
||||
}
|
||||
|
||||
|
||||
|
@ -1825,6 +1825,9 @@ void SCH_PAINTER::draw( const SCH_LINE* aLine, int aLayer )
|
||||
if( !highlightNetclassColors && drawingNetColorHighlights )
|
||||
return;
|
||||
|
||||
if( drawingNetColorHighlights && !( aLine->IsWire() || aLine->IsBus() ) )
|
||||
return;
|
||||
|
||||
if( m_schSettings.m_OverrideItemColors && drawingNetColorHighlights )
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user